-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Fix Tripped Assertion on Resync Failure during Node Shutdown #71062
Merged
original-brownbear
merged 2 commits into
elastic:master
from
original-brownbear:fix-test-fail
Mar 31, 2021
Merged
Fix Tripped Assertion on Resync Failure during Node Shutdown #71062
original-brownbear
merged 2 commits into
elastic:master
from
original-brownbear:fix-test-fail
Mar 31, 2021
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
We can have a race here where the closed check passes and then we concurrently to a shard close try to fail the shard also. Previously this was covered by the catch below the changed code that would just ignore the already-closed exception but with elastic#69949 we're now forking to the generic pool for this logic and thus have to handle the exception in the callback as well.
original-brownbear
added
>non-issue
:Distributed Indexing/Recovery
Anything around constructing a new shard, either from a local or a remote source.
v8.0.0
v7.13.0
labels
Mar 30, 2021
elasticmachine
added
the
Team:Distributed (Obsolete)
Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.
label
Mar 30, 2021
Pinging @elastic/es-distributed (Team:Distributed) |
original-brownbear
changed the title
Fix Tripped Assertion on Resync during Node Shutdown
Fix Tripped Assertion on Resync Failure during Node Shutdown
Mar 30, 2021
original-brownbear
added
v7.12.1
:Distributed Indexing/CRUD
A catch all label for issues around indexing, updating and getting a doc by id. Not search.
and removed
:Distributed Indexing/Recovery
Anything around constructing a new shard, either from a local or a remote source.
labels
Mar 30, 2021
DaveCTurner
approved these changes
Mar 31, 2021
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.
LGTM
Thanks David! |
original-brownbear
added a commit
to original-brownbear/elasticsearch
that referenced
this pull request
Mar 31, 2021
We can have a race here where the closed check passes and then we concurrently to a shard close try to fail the shard also. Previously this was covered by the catch below the changed code that would just ignore the already-closed exception but with elastic#69949 we're now forking to the generic pool for this logic and thus have to handle the exception in the callback as well.
original-brownbear
added a commit
to original-brownbear/elasticsearch
that referenced
this pull request
Mar 31, 2021
We can have a race here where the closed check passes and then we concurrently to a shard close try to fail the shard also. Previously this was covered by the catch below the changed code that would just ignore the already-closed exception but with elastic#69949 we're now forking to the generic pool for this logic and thus have to handle the exception in the callback as well.
original-brownbear
added a commit
that referenced
this pull request
Mar 31, 2021
We can have a race here where the closed check passes and then we concurrently to a shard close try to fail the shard also. Previously this was covered by the catch below the changed code that would just ignore the already-closed exception but with #69949 we're now forking to the generic pool for this logic and thus have to handle the exception in the callback as well.
original-brownbear
added a commit
that referenced
this pull request
Mar 31, 2021
We can have a race here where the closed check passes and then we concurrently to a shard close try to fail the shard also. Previously this was covered by the catch below the changed code that would just ignore the already-closed exception but with #69949 we're now forking to the generic pool for this logic and thus have to handle the exception in the callback as well.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
:Distributed Indexing/CRUD
A catch all label for issues around indexing, updating and getting a doc by id. Not search.
>non-issue
Team:Distributed (Obsolete)
Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.
v7.12.1
v7.13.0
v8.0.0-alpha1
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.
We can have a race here where the closed check passes and then we concurrently to
a shard close try to fail the shard also. Previously this was covered by the catch below
the changed code that would just ignore the already-closed exception but with #69949 we're
now forking to the generic pool for this logic and thus have to handle the exception in the
callback as well.
Failed in https://gradle-enterprise.elastic.co/s/5i55v7oeoekxc/tests/:server:internalClusterTest/org.elasticsearch.cluster.routing.PrimaryAllocationIT/testForceStaleReplicaToBePromotedToPrimary?expanded-stacktrace=WyIwLTEiLCIwLTEtMiIsIjAtMS0yLTMiXQ#1 and could fail elsewhere (though it's very unlikely)