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

[BUG] Failure in RemoveCorruptedShardDataCommandTests#testCorruptedTranslog #7268

Open
nknize opened this issue Apr 21, 2023 · 0 comments
Open
Labels
bug Something isn't working distributed framework >test-failure Test failure from CI, local build, etc.

Comments

@nknize
Copy link
Collaborator

nknize commented Apr 21, 2023

Describe the bug
Caught on PR #7165

    Expected: an instance of org.opensearch.index.translog.TranslogCorruptedException
         but: <[index0/evMPrh9eTt23ZGu9UU2mWw][[index0][0]] EngineCreationFailureException[failed to create engine]; nested: TranslogCorruptedException[translog from source [/opt/dev/opensearch-project/opensearch/.worktrees/refactor/ImmutableOpenMap/server/build/testrun/test/temp/org.opensearch.index.shard.RemoveCorruptedShardDataCommandTests_FBD81B0B276706DB-001/tempDir-002/nodes/0/indices/evMPrh9eTt23ZGu9UU2mWw/0/translog/translog-8.ckp] is corrupted]; nested: CorruptIndexException[codec footer mismatch (file truncated?): actual footer=0 vs expected footer=-1071082520 (resource=BufferedChecksumIndexInput(NIOFSIndexInput(path="/opt/dev/opensearch-project/opensearch/.worktrees/refactor/ImmutableOpenMap/server/build/testrun/test/temp/org.opensearch.index.shard.RemoveCorruptedShardDataCommandTests_FBD81B0B276706DB-001/tempDir-002/nodes/0/indices/evMPrh9eTt23ZGu9UU2mWw/0/translog/translog-8.ckp")))];> is a org.opensearch.index.engine.EngineCreationFailureException

To Reproduce

./gradlew ':server:test' --tests "org.opensearch.index.shard.RemoveCorruptedShardDataCommandTests.testCorruptedTranslog" -Dtests.seed=FBD81B0B276706DB -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=ga-IE -Dtests.timezone=America/Asuncion -Druntime.java=19

Expected behavior
Passing test

Additional context
The failure traces back to PR #3671 (Specifically change https://github.com/opensearch-project/OpenSearch/pull/3671/files#diff-e762c79693500368fccf123d2e419a50013744b2a234510a753ecfc58d2cd575R293). The Exception is thrown in InternalEngine ctor Line 312 The fix is pretty straightforward, will open one shortly. Documenting here to not hold up PR #7165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working distributed framework >test-failure Test failure from CI, local build, etc.
Projects
None yet
Development

No branches or pull requests

2 participants