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

During recovery, only send mapping updates to master if needed #6772

Closed

Conversation

bleskes
Copy link
Contributor

@bleskes bleskes commented Jul 7, 2014

The change added in #6762 helps making sure the pending mapping updates are processed on all nodes to prevent moving shards to nodes which are not yet fully aware of the new mapping. However it introduced a racing condition delete_mapping operations, potentially causing a type to be added after it's deletion. This commit solves this by only sending a mapping update if the mapping source has actually changed.

The change added in elastic#6762 helps making sure the pending mapping updates are processed on all nodes to prevent moving shards to nodes which are not yet fully aware of the new mapping. However it introduced a racing condition delete_mapping operations, potentially causing a type to be added after it's deletion. This commit solves this by only sending a mapping update if the mapping source has actually changed.
@kimchy
Copy link
Member

kimchy commented Jul 7, 2014

LGTM

@bleskes bleskes closed this in 867d887 Jul 7, 2014
bleskes added a commit that referenced this pull request Jul 7, 2014
The change added in #6762 helps making sure the pending mapping updates are processed on all nodes to prevent moving shards to nodes which are not yet fully aware of the new mapping. However it introduced a racing condition delete_mapping operations, potentially causing a type to be added after it's deletion. This commit solves this by only sending a mapping update if the mapping source has actually changed.

Closes #6772
@jpountz jpountz removed the review label Jul 16, 2014
@clintongormley clintongormley changed the title [Recovery] only send mapping updates to master if needed Resiliency: During recovery, only send mapping updates to master if needed Jul 16, 2014
@clintongormley clintongormley changed the title Resiliency: During recovery, only send mapping updates to master if needed During recovery, only send mapping updates to master if needed Jun 7, 2015
@clintongormley clintongormley added :Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. and removed :Cluster labels Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. resiliency v1.3.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants