Skip to content

Conversation

@original-brownbear
Copy link
Contributor

backport of #45689

* Write metadata during snapshot finalization after segment files to prevent outdated metadata in case of dynamic mapping updates as explained in elastic#41581
* Keep the old behavior of writing the metadata beforehand in the case of mixed version clusters for BwC reasons
   * Still overwrite the metadata in the end, so even a mixed version cluster is fixed by this change if a newer version master does the finalization
* Fixes elastic#41581
@original-brownbear original-brownbear added :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport labels Sep 16, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@original-brownbear
Copy link
Contributor Author

Jenkins run elasticsearch-ci/default-distro

original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Sep 17, 2019
Disabling BwC test so we can safely merge elastic#46764
original-brownbear added a commit that referenced this pull request Sep 17, 2019
Disabling BwC tests so we can safely merge #46764
@original-brownbear original-brownbear merged commit b0f09b2 into elastic:7.x Sep 17, 2019
@original-brownbear original-brownbear deleted the 45689-7.x branch September 17, 2019 11:09
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Sep 17, 2019
Now that elastic#46764 is merged tests can be reenabled
original-brownbear added a commit that referenced this pull request Sep 17, 2019
Now that #46764 is merged tests can be reenabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants