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

Update the recorded index version when an index is opened #110336

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

thecoop
Copy link
Member

@thecoop thecoop commented Jul 1, 2024

This is for #102708

Update the recorded highest index version when an index is opened, not just when mappings are updated. This is to ensure that once an index has been opened by a node with a particular index version, it is then only allocated (by the in-progress index version allocator) to nodes with that index version or above

@thecoop thecoop added :Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) >refactoring labels Jul 1, 2024
@elasticsearchmachine elasticsearchmachine added Team:Distributed Meta label for distributed team v8.15.0 labels Jul 1, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@@ -1132,6 +1132,7 @@ private ClusterState openIndices(final Index[] indices, final ClusterState curre
.state(IndexMetadata.State.OPEN)
.settingsVersion(indexMetadata.getSettingsVersion() + 1)
.settings(updatedSettings)
.indexVersionWatermark(IndexVersion.current())
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the substantive change here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) >refactoring Team:Distributed Meta label for distributed team v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants