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

Greedily advance safe commit on new global checkpoint #48559

Merged
merged 2 commits into from
Oct 29, 2019

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Oct 28, 2019

Today we won't advance the safe commit on a new global checkpoint unless the last commit can become safe. This is not great if we have more than two commits as we can have a new safe commit sooner.

Closes #48532

@dnhatn dnhatn added >bug :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. v8.0.0 v7.5.0 v7.6.0 v7.4.2 labels Oct 28, 2019
@elasticmachine
Copy link
Collaborator

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

@dnhatn dnhatn changed the title Greedy advance safe commit on new global checkpoint Greedily advance safe commit on new global checkpoint Oct 28, 2019
Copy link
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @dnhatn

I left a very small optional comment only.

@dnhatn dnhatn requested a review from ywelsch October 28, 2019 14:11
Copy link
Contributor

@ywelsch ywelsch left a comment

Choose a reason for hiding this comment

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

LGTM

@dnhatn
Copy link
Member Author

dnhatn commented Oct 29, 2019

Thanks @ywelsch @henningandersen.

@dnhatn dnhatn merged commit 71a6873 into elastic:master Oct 29, 2019
@dnhatn dnhatn deleted the advance-safe-commit branch October 29, 2019 12:56
dnhatn added a commit that referenced this pull request Oct 29, 2019
Today we won't advance the safe commit on a new global checkpoint unless 
the last commit can become safe. This is not great if we have more than
two commits as we can have a new safe commit earlier.

Closes #4853
dnhatn added a commit that referenced this pull request Oct 29, 2019
dnhatn added a commit that referenced this pull request Oct 29, 2019
dnhatn added a commit that referenced this pull request Oct 29, 2019
Today we won't advance the safe commit on a new global checkpoint unless 
the last commit can become safe. This is not great if we have more than
two commits as we can have a new safe commit earlier.

Closes #4853
dnhatn added a commit that referenced this pull request Oct 29, 2019
dnhatn added a commit that referenced this pull request Oct 29, 2019
Today we won't advance the safe commit on a new global checkpoint unless 
the last commit can become safe. This is not great if we have more than
two commits as we can have a new safe commit earlier.

Closes #4853
dnhatn added a commit that referenced this pull request Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. v7.4.2 v7.5.0 v7.6.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PeerRecoveryTargetServiceTests#testPrepareIndexForPeerRecovery failed in CI
5 participants