opensearch-project / OpenSearch

🔎 Open source distributed and RESTful search engine.
https://opensearch.org/docs/latest/opensearch/index/
Apache License 2.0
9.49k stars 1.74k forks source link

[BUG] SnapshotStatusApisIT.testExceptionOnMissingShardLevelSnapBlob fails with reproducible seed #15584

Open mch2 opened 2 weeks ago

mch2 commented 2 weeks ago

Describe the bug

junit.framework.AssertionFailedError: Expected exception SnapshotMissingException but no exception was thrown
    at __randomizedtesting.SeedInfo.seed([5F17849827BA79F3:C1C9BD258865E37A]:0)
    at org.apache.lucene.tests.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2886)
    at org.apache.lucene.tests.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2872)
    at org.opensearch.snapshots.SnapshotStatusApisIT.testExceptionOnMissingShardLevelSnapBlob(SnapshotStatusApisIT.java:211)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
REPRODUCE WITH: ./gradlew ':server:internalClusterTest' --tests "org.opensearch.snapshots.SnapshotStatusApisIT.testExceptionOnMissingShardLevelSnapBlob" -Dtests.seed=5F17849827BA79F3 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=it-VA -Dtests.timezone=US/Hawaii -Druntime.java=21

Related component

Storage:Snapshots

To Reproduce

Seed above.

Expected behavior

Test to pass

Additional Details

No response

prudhvigodithi commented 1 week ago

Hey @mch2 the automation flagged the class SnapshotStatusApisIT showing some flaky tests, please check https://github.com/opensearch-project/OpenSearch/issues/15815. Can we close this issue? Thanks @dblock @rednaksi91 @andrross @getsaurabh02

mch2 commented 1 week ago

@prudhvigodithi this fails with a reproducible seed so imo should be treated as a bug not a flaky test.

prudhvigodithi commented 1 week ago

Coming from here https://github.com/opensearch-project/OpenSearch/issues/15815, the SnapshotStatusApisIT failed at the post merge action which means it passed at one point, the PR was merged and started to see some failures after then. The issue also has the other PR's linked on which the SnapshotStatusApisIT failed at one point and passed after re-try as some of them are in merged state. Thanks