-
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
Ignore dangling indices created in newer versions #48652
Ignore dangling indices created in newer versions #48652
Conversation
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 @rvl101, this looks like a reasonable approach. I left a couple of small suggestions.
server/src/main/java/org/elasticsearch/gateway/LocalAllocateDangledIndices.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/elasticsearch/indices/IndicesServiceTests.java
Outdated
Show resolved
Hide resolved
Pinging @elastic/es-distributed (:Distributed/Allocation) |
Thanks for the feedback, @DaveCTurner. I've made the changes. |
@elasticmachine test this please |
Failure looks unrelated, tracked in #42577 @elasticmachine please run elasticsearch-ci/1 |
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
Today it is possible that we import a dangling index that was created in a newer version than one or more of the nodes in the cluster. Such an index would prevent the older node(s) from rejoining the cluster if they were to briefly leave it for some reason. This commit prevents the import of such dangling indices. Fixes #34264
Today it is possible that we import a dangling index that was created in a
newer version than one or more of the nodes in the cluster. Such an index would
prevent the older node(s) from rejoining the cluster if they were to briefly
leave it for some reason. This commit prevents the import of such dangling
indices.
Fixes #34264