Skip to content

Conversation

@dnhatn
Copy link
Member

@dnhatn dnhatn commented Jan 23, 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 subsequent 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 does not the primary term
of the engine.

Relates #36467
Closes #37684

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
@dnhatn dnhatn added >test Issues or PRs that are addressing/adding tests v7.0.0 :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. v6.7.0 v6.6.1 labels Jan 23, 2019
@dnhatn dnhatn requested review from bleskes and ywelsch January 23, 2019 03:47
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@dnhatn
Copy link
Member Author

dnhatn commented Jan 23, 2019

run elasticsearch-ci/default-distro

Copy link
Contributor

@bleskes bleskes left a comment

Choose a reason for hiding this comment

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

LGTM. good catch.

@dnhatn
Copy link
Member Author

dnhatn commented Jan 24, 2019

Thanks @ywelsch and @bleskes.

@dnhatn dnhatn merged commit a6abb28 into elastic:master Jan 24, 2019
@dnhatn dnhatn deleted the test/engine-primary-version branch January 24, 2019 15:02
dnhatn added a commit that referenced this pull request Jan 28, 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
talevy pushed a commit to talevy/elasticsearch that referenced this pull request 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 elastic#36467
Closes elastic#37684
@talevy
Copy link
Contributor

talevy commented Feb 15, 2019

I do not think this was ever backported to the 6.6 branch, opened #38990 to do that

talevy added a commit that referenced this pull request Feb 16, 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
@talevy talevy added v6.6.2 and removed v6.6.1 labels Feb 16, 2019
kovrus added a commit to crate/crate that referenced this pull request Sep 6, 2019
kovrus added a commit to crate/crate that referenced this pull request Sep 6, 2019
mergify bot pushed a commit to crate/crate that referenced this pull request Sep 6, 2019
mergify bot pushed a commit to crate/crate that referenced this pull request Oct 25, 2019
Backport of elastic/elasticsearch#37746

(cherry picked from commit 1ec2443)

# Conflicts:
#	es/es-testing/src/main/java/org/elasticsearch/index/engine/EngineTestCase.java
seut pushed a commit to crate/crate that referenced this pull request Oct 25, 2019
mergify bot pushed a commit to crate/crate that referenced this pull request Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

: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 v6.7.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants