Skip to content
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

Use current term in initial leases in engine test #38285

Merged
merged 3 commits into from
Feb 11, 2019

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Feb 3, 2019

We need to use the current primary term instead of 1L for the initial
retention leases; otherwise, the primary term of the committed
retention-leases won't match the current primary term if the
retention-leases never gets updated.

CI: https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA=openjdk12,ES_RUNTIME_JAVA=zulu8,nodes=immutable&&linux&&docker/220/console

./gradlew :server:unitTest \
  -Dtests.seed=D5239BE5D5D26ED3 \
  -Dtests.class=org.elasticsearch.index.engine.InternalEngineTests \
  -Dtests.method="testKeepMinRetainedSeqNoByMergePolicy" \
  -Dtests.security.manager=true \
  -Dtests.locale=ar-BH \
  -Dtests.timezone=Etc/GMT-9 \
  -Dcompiler.java=12 \
  -Druntime.java=8

We need to use the current primary term instead of 1L for the initial
retention leases; otherwise, the primary term of the committed
retention-leases won't match the current primary term if the
etention-leases never gets updated.
@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 labels Feb 3, 2019
@dnhatn dnhatn requested a review from jasontedor February 3, 2019 18:53
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@cbuescher
Copy link
Member

@dnhatn can we mute the test while this PR is not merged? I saw this happening again on 6.7 today: https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+6.7+corretto-periodic/ES_BUILD_JAVA=java11,label=amazon/4/console

@cbuescher
Copy link
Member

Other occurances:
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+6.7+multijob-unix-compatibility/os=amazon/3/console
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+g1gc/342/console

Since its also failing on master I assume that 7.x and 7.0 are also affected. Will open a mute-PR against master, please let me know if you are okay muting this.

@cbuescher
Copy link
Member

@dnhatn I muted this on master (76b32e6), 7.x (e3c7b93), 7.0 (061fa7b) and 6.7 (eb965bb).

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.

@dnhatn dnhatn merged commit ed73bb7 into elastic:master Feb 11, 2019
@dnhatn dnhatn deleted the fix-init-leases-engine branch February 11, 2019 18:12
@dnhatn
Copy link
Member Author

dnhatn commented Feb 11, 2019

@cbuescher @jasontedor thanks.

dnhatn added a commit that referenced this pull request Feb 12, 2019
We need to use the current primary term instead of 1L for the initial
retention leases; otherwise, the primary term of the committed
retention leases won't match the current primary term if the
retention leases never gets updated.
dnhatn added a commit that referenced this pull request Feb 12, 2019
We need to use the current primary term instead of 1L for the initial
retention leases; otherwise, the primary term of the committed
retention leases won't match the current primary term if the
retention leases never gets updated.
dnhatn added a commit that referenced this pull request Feb 12, 2019
We need to use the current primary term instead of 1L for the initial
retention leases; otherwise, the primary term of the committed
retention leases won't match the current primary term if the
retention leases never gets updated.
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.7.0 v7.0.0-beta1 v7.2.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants