Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vip @example.env -- wp vip-search index-versions list term returns document_count = 0 intermittently for fresh Version 2 #1961

Open
NinjutsuSunrise opened this issue Jul 25, 2024 · 3 comments

Comments

@NinjutsuSunrise
Copy link

NinjutsuSunrise commented Jul 25, 2024

Expected/Desired Behavior

After running vip @example.env -- wp vip-search index --indexables="term" --version="next" the document_count for Version 2 of the Index should be accurate via vip @example.env -- wp vip-search index-versions list term.

Actual Behavior

After running vip @example.env -- wp vip-search index --indexables="term" --version="next" the document_count for Version 2 of the Index is intermittently 0 via vip @example.env -- wp vip-search index-versions list term. First 0, then 253681, then 0, then 253681 and staying consistent after some time.

As an aside, vip @example.env -- wp vip-search health validate-terms-count was always accurate. Still, the buggy document_count introduces confusion and doubt.

Note: vip -v = 3.7.0

Steps to Reproduce the Problem

  1. vip @example.env -- wp vip-search index --indexables="term" --version="next"
  2. vip @example.env -- wp vip-search index-versions list term (was 0)
  3. vip @example.env -- wp vip-search index-versions list term (was 253681)
  4. vip @example.env -- wp vip-search health validate-terms-count (no problem)
  5. vip @example.env -- wp vip-search index-versions list term (was 0)
  6. vip @example.env -- wp vip-search index-versions list term (was 253681)
@NinjutsuSunrise NinjutsuSunrise changed the title vip @example-env -- wp vip-search index-versions list term returns document_count = 0 intermittently for fresh Version 2 vip @example.env -- wp vip-search index-versions list term returns document_count = 0 intermittently for fresh Version 2 Jul 25, 2024
@sjinks
Copy link
Member

sjinks commented Aug 5, 2024

@rebeccahum
Copy link
Contributor

rebeccahum commented Aug 6, 2024

Hmm I can't seem to reproduce. The only thing that comes to mind is if the ES request fails (which is why it's intermittently happening): https://github.com/Automattic/vip-go-mu-plugins/blob/44e6293555331be77646e30ee2df97c961fcd34c/search/includes/classes/class-health.php#L1168

Copy link
Contributor

github-actions bot commented Oct 6, 2024

This issue has been marked stale because it has been open for 60 days with no activity. If there is no activity within 7 days, it will be closed.

This is an automation to keep issues manageable and actionable and is not a comment on the quality of this issue nor on the work done so far. Closed issues are still valuable to the project and are available to be searched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants