Skip to content

Greedily advance safe commit on new global checkpoint#48559

Merged
dnhatn merged 2 commits intoelastic:masterfrom
dnhatn:advance-safe-commit
Oct 29, 2019
Merged

Greedily advance safe commit on new global checkpoint#48559
dnhatn merged 2 commits intoelastic:masterfrom
dnhatn:advance-safe-commit

Conversation

@dnhatn
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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