-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
TEST: Ensure a manual flush always occur #36188
Conversation
The test testLookupSeqNoByIdInLucene fails because it expects if any change should be visible after a flush. However, that flush might be ignored if the waitIfOngoing parameter is false (the default value), and there is an ongoing flush triggered after merge is running. Closes elastic#35823
Pinging @elastic/es-distributed |
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.
Thanks @dnhatn!
This makes me wonder whether calling flush(true, false)
makes any sense and whether we should disallow this combination or maybe replace these two booleans with an enum (eg. TRY_FLUSH
(false, false), FLUSH_IF_CHANGES
(false, true), FORCE_FLUSH
(true, true))?
The test testLookupSeqNoByIdInLucene fails because it expects if any change should be visible after a flush. However, that flush might be ignored if the waitIfOngoing parameter is false (the default value), and there is an ongoing flush triggered after merge is running. Closes #35823
The test testLookupSeqNoByIdInLucene fails because it expects if any change should be visible after a flush. However, that flush might be ignored if the waitIfOngoing parameter is false (the default value), and there is an ongoing flush triggered after merge is running. Closes #35823
The test
testLookupSeqNoByIdInLucene
fails because it expects if anychange should be visible after a flush. However, that flush might be
ignored if the
waitIfOngoing
parameter is false (the default value), andthere is an ongoing flush triggered after merge is running.
Closes #35823