Skip to content
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

Merged
merged 2 commits into from
Oct 31, 2019

Conversation

RvI101
Copy link
Contributor

@RvI101 RvI101 commented Oct 29, 2019

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

Copy link
Contributor

@DaveCTurner DaveCTurner left a 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.

@DaveCTurner DaveCTurner added :Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) >bug v7.6.0 v8.0.0 labels Oct 29, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Allocation)

@RvI101 RvI101 marked this pull request as ready for review October 29, 2019 22:54
@RvI101
Copy link
Contributor Author

RvI101 commented Oct 29, 2019

Thanks for the feedback, @DaveCTurner. I've made the changes.

@DaveCTurner
Copy link
Contributor

@elasticmachine test this please

@DaveCTurner DaveCTurner changed the title Closes #34264 - Ignore newer dangling indices when importing Ignore dangling indices created in newer versions Oct 30, 2019
@DaveCTurner
Copy link
Contributor

Failure looks unrelated, tracked in #42577

@elasticmachine please run elasticsearch-ci/1

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DaveCTurner DaveCTurner merged commit 32d511d into elastic:master Oct 31, 2019
DaveCTurner pushed a commit that referenced this pull request Oct 31, 2019
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
@RvI101 RvI101 deleted the ignore-dangling-later-indices branch October 31, 2019 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) v7.6.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent import of dangling indices from a later version
4 participants