Skip to content

Fix InternalEngineTests#assertOpsOnPrimary (#37746) #38990

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 1 commit into from
Feb 16, 2019

Conversation

talevy
Copy link
Contributor

@talevy talevy commented Feb 15, 2019

The assertion assertOpsOnPrimary does not store seq_no and primary
term of successful deletes to the lastOpSeqNo and lastOpTerm. This
leads to failures of the subsequence CAS deletes or indexes with seq_no
and term. Moreover, this assertion trips a translog assertion because it
bumps the primary term of some operations but not the primary term of
the engine.

Relates #36467
Closes #37684

backport of #37746

The assertion `assertOpsOnPrimary` does not store seq_no and primary
term of successful deletes to the `lastOpSeqNo` and `lastOpTerm`. This
leads to failures of the subsequence CAS deletes or indexes with seq_no
and term. Moreover, this assertion trips a translog assertion because it
bumps the primary term of some operations but not the primary term of
the engine.

Relates elastic#36467
Closes elastic#37684
@talevy talevy added :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. backport v6.6.2 labels Feb 15, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@talevy talevy added the >test Issues or PRs that are addressing/adding tests label Feb 15, 2019
@talevy talevy requested a review from dnhatn February 15, 2019 23:56
Copy link
Member

@dnhatn dnhatn 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 @talevy :).

@talevy talevy merged commit f9a06ff into elastic:6.6 Feb 16, 2019
@talevy talevy deleted the backport-a6abb28 branch February 16, 2019 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. >test Issues or PRs that are addressing/adding tests v6.6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants