-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Ensure index is up to date when querying #5081
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f0b4989
to
89a5769
Compare
nickva
approved these changes
Jun 6, 2024
It did show one failure:
|
Interestingly, the failure is not always the same. In a previous run on main the reason for closure was
|
89a5769
to
06c3da5
Compare
@nickva good catch, that was also because idleseconds defaults to zero. |
06c3da5
to
63b7b79
Compare
2602aa7
to
1ba13da
Compare
big-r81
approved these changes
Jun 7, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
the IndexHealthCheckTest exposed a sequence of events that lead to test failure, but also point to an undesirable state during production. Namely; 1) an index is opened 2) an index is updated 3) the IndexManager closes the index due to LRU pressure, and rolls back the changes in step 2 4) an index is queried, which returns results that don't reflect the changes made in step 2. This change modifies the SearchRequest so that the caller can ensure the index is at least up to a certain sequence. Some attributes are added to IndexManager member variables to clarify their valid ranges. add --rerun to the test goal so we can run the tests again even if the code under test has not changed.
1ba13da
to
de63bfe
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ensure index is up to date when querying
the IndexHealthCheckTest exposed a sequence of events that lead to
test failure, but also point to an undesirable state during production.
Namely;
the changes in step 2
changes made in step 2.
This change modifies the SearchRequest so that the caller can ensure
the index is at least up to a certain sequence.
Some attributes are added to IndexManager member variables to clarify
their valid ranges.
add --rerun to the test goal so we can run the tests again even if
the code under test has not changed.