-
Notifications
You must be signed in to change notification settings - Fork 25.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
[test] Fix SimpleBlocksIT testConcurrentAddBlock
#123019
base: main
Are you sure you want to change the base?
Conversation
SimpleBlocksIT testConcurrentAddBlock
Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing) |
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.
I am not convinced this is the right fix. If the changes we made recently cause the index block to sometimes not be added, we need to fix that. Whether it is ack'ed seems irrelevant here.
I wonder how you arrived at the conclusion that this was the necessary fix?
Where you able to reproduce the issue? And did that reproduction no longer reproduce afterwards? If you could reproduce it, then how?
@henningandersen The issue is reproduced very easily locally if I check whether I've used the same pattern to for retrying of adding the block as in |
Failing index block responses look something like this
|
I see, thanks. I still think I'd prefer to fix the API to actually add the block. This seems to be an internal race condition more than an unsolvable problem. I can see 2 ways to do so:
We should probably do so for both add-index and close-index, but can start with just add-index. |
Check that requests for adding an index block in parallel are acked. We already use the same pattern in the
SimpleBlocksIT#testCloseOneMissingIndexIgnoreMissing
testResolve #122324