Skip to content

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