Skip to content

[CI] Seed specific failure of RemoveCorruptedShardDataCommandTests.testCorruptedTranslog #49909

@droberts195

Description

@droberts195

RemoveCorruptedShardDataCommandTests.testCorruptedTranslog fails reproducibly on the 7.x branch (confirmed using commit bb91291) with this repro command:

./gradlew ':server:test' --tests "org.elasticsearch.index.shard.RemoveCorruptedShardDataCommandTests.testCorruptedTranslog" \
  -Dtests.seed=73D8350A7F9C1987 \
  -Dtests.security.manager=true \
  -Dtests.locale=sl \
  -Dtests.timezone=Europe/Brussels \
  -Dcompiler.java=12 \
  -Druntime.java=12

and this error:

  2> java.lang.AssertionError: minTranslogGen [11] is higher than generation [10]
        at __randomizedtesting.SeedInfo.seed([73D8350A7F9C1987:41A0283FE58FDB57]:0)
        at org.elasticsearch.index.translog.Checkpoint.<init>(Checkpoint.java:100)
        at org.elasticsearch.index.translog.TestTranslog.corruptRandomTranslogFile(TestTranslog.java:99)
        at org.elasticsearch.index.translog.TestTranslog.corruptRandomTranslogFile(TestTranslog.java:72)
        at org.elasticsearch.index.shard.RemoveCorruptedShardDataCommandTests.testCorruptedTranslog(RemoveCorruptedShardDataCommandTests.java:220)

If you change the seed then it doesn't fail.

The CI build where this happened was https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+7.x+matrix-java-periodic/ES_BUILD_JAVA=openjdk12,ES_RUNTIME_JAVA=java12,nodes=general-purpose/371/console

Metadata

Metadata

Assignees

Labels

:Distributed Indexing/EngineAnything around managing Lucene and the Translog in an open shard.>test-failureTriaged test failures from CI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions