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

Fill gaps on primary promotion #24945

Merged
merged 2 commits into from
May 30, 2017

Conversation

jasontedor
Copy link
Member

When a primary is promoted, it could have gaps in its history due to concurrency and in-flight operations when it was serving as a replica. This commit fills the gaps in the history of the promoted shard after all operations from the previous term have drained, and future operations are blocked. This commit does not handle replicating the no-ops that fill the gaps to any remaining replicas, that is the responsibility of the primary/replica sync that we are laying the ground work for.

Relates #10708

@jasontedor jasontedor requested a review from bleskes May 29, 2017 23:59
@jasontedor jasontedor force-pushed the primary-promotion-fill-gaps branch 2 times, most recently from 0450c64 to 14a5343 Compare May 30, 2017 00:02
@jasontedor jasontedor force-pushed the primary-promotion-fill-gaps branch 3 times, most recently from 30b3f3e to 80de9db Compare May 30, 2017 10:19
When a primary is promoted, it could have gaps in its history due to
concurrency and in-flight operations when it was serving as a
replica. This commit fills the gaps in the history of the promoted shard
after all operations from the previous term have drained, and future
operations are blocked. This commit does not handle replicating the
no-ops that fill the gaps to any remaining replicas, that is the
responsibility of the primary/replica sync that we are laying the ground
work for.
@jasontedor jasontedor force-pushed the primary-promotion-fill-gaps branch from 80de9db to 8f7b618 Compare May 30, 2017 15:42
@jasontedor
Copy link
Member Author

@bleskes This is ready for you now that #24925 is integrated.

Copy link
Contributor

@bleskes bleskes left a comment

Choose a reason for hiding this comment

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

LGTM

@jasontedor jasontedor force-pushed the primary-promotion-fill-gaps branch from 7d689f2 to 184faba Compare May 30, 2017 17:18
@jasontedor jasontedor merged commit b28141a into elastic:master May 30, 2017
@jasontedor jasontedor deleted the primary-promotion-fill-gaps branch May 30, 2017 17:19
@clintongormley clintongormley added :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. and removed :Sequence IDs labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. >enhancement v6.0.0-alpha2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants