Skip to content

Fix primary term in testAddOrRenewRetentionLease #38239

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

Merged
merged 3 commits into from
Feb 2, 2019

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Feb 2, 2019

We should increase primary term before renewing leases; otherwise, the
term of the latest RetentionLeases will be lower than the current term.

Relates #37951

We should increase primary term before renewing leases; otherwise, the
term of the latest RetentionLeases will be lower than the current term.
@dnhatn dnhatn added >test Issues or PRs that are addressing/adding tests v7.0.0 :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. v6.7.0 labels Feb 2, 2019
@dnhatn dnhatn requested a review from jasontedor February 2, 2019 02:07
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

dnhatn added a commit to dnhatn/elasticsearch that referenced this pull request Feb 2, 2019
dnhatn added a commit to dnhatn/elasticsearch that referenced this pull request Feb 2, 2019
Copy link
Member

@jasontedor jasontedor 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
Copy link
Member

This change will need to be updated to remove the @AwaitsFix annotation after #38240 and #38241 are incorporated.

dnhatn added a commit that referenced this pull request Feb 2, 2019
dnhatn added a commit that referenced this pull request Feb 2, 2019
@dnhatn
Copy link
Member Author

dnhatn commented Feb 2, 2019

Thanks @jasontedor.

@dnhatn dnhatn merged commit 80d3092 into elastic:master Feb 2, 2019
@dnhatn dnhatn deleted the fix-new-leases-test branch February 2, 2019 07:38
dnhatn added a commit that referenced this pull request Feb 2, 2019
We should increase primary term before renewing leases; otherwise, the
term of the latest RetentionLeases will be lower than the current term.

Backport of #38239
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. >test Issues or PRs that are addressing/adding tests v6.7.0 v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants