Skip to content

[CI] InternalEngineTests.testRestoreLocalHistoryFromTranslog #52410

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

Closed
astefan opened this issue Feb 17, 2020 · 2 comments · Fixed by #52441
Closed

[CI] InternalEngineTests.testRestoreLocalHistoryFromTranslog #52410

astefan opened this issue Feb 17, 2020 · 2 comments · Fixed by #52441
Assignees
Labels
:Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. >test-failure Triaged test failures from CI

Comments

@astefan
Copy link
Contributor

astefan commented Feb 17, 2020

This one reproduces for me with ./gradlew ':server:test' --tests "org.elasticsearch.index.engine.InternalEngineTests.testRestoreLocalHistoryFromTranslog" -Dtests.seed=9E40590F007B5A62 -Dtests.security.manager=true -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=da -Dtests.timezone=America/Adak -Dcompiler.java=13

03:27:37   1> [2020-02-16T14:26:51,941][INFO ][o.e.i.e.InternalEngineTests] [testRestoreLocalHistoryFromTranslog] before test
03:27:37   1> [2020-02-16T14:26:52,385][INFO ][o.e.i.e.InternalEngineTests] [testRestoreLocalHistoryFromTranslog] after test
03:27:37   2> REPRODUCE WITH: ./gradlew ':server:test' --tests "org.elasticsearch.index.engine.InternalEngineTests.testRestoreLocalHistoryFromTranslog" -Dtests.seed=9E40590F007B5A62 -Dtests.security.manager=true -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=da -Dtests.timezone=America/Adak -Dcompiler.java=13
03:27:37   2> java.lang.AssertionError: restore from local translog must not add operations to translog
03:27:37     Expected: <23>
03:27:37          but: was <20>
03:27:37         at __randomizedtesting.SeedInfo.seed([9E40590F007B5A62:1BAA42410B03C763]:0)
03:27:37         at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
03:27:37         at org.junit.Assert.assertThat(Assert.java:956)
03:27:37         at org.elasticsearch.index.engine.InternalEngineTests.testRestoreLocalHistoryFromTranslog(InternalEngineTests.java:4243)

https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+release-tests/907/console

@astefan astefan added >test-failure Triaged test failures from CI :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. labels Feb 17, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Engine)

@ywelsch
Copy link
Contributor

ywelsch commented Feb 17, 2020

What's happening here is that when reopening the engine, recoverFromTranslog is issuing a flush, which creates a new safe commit, and thereby has the translog retention policy clean up old generations.

I'm not sure what kind of assertion we want to go for here. Perhaps just that the number of operations recovered is less than or equal to the number of operations we previously had in the translog?

dnhatn added a commit that referenced this issue Feb 18, 2020
Asserts that no new operations are made into the translog since we re-opened the engine.

Relates #51905
Closes #52410
sbourke pushed a commit to sbourke/elasticsearch that referenced this issue Feb 19, 2020
Asserts that no new operations are made into the translog since we re-opened the engine.

Relates elastic#51905
Closes elastic#52410
dnhatn added a commit to dnhatn/elasticsearch that referenced this issue Feb 26, 2020
Asserts that no new operations are made into the translog since we re-opened the engine.

Relates elastic#51905
Closes elastic#52410
dnhatn added a commit that referenced this issue Feb 26, 2020
Asserts that no new operations are made into the translog since we re-opened the engine.

Relates #51905
Closes #52410
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-failure Triaged test failures from CI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants