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] org.opensearch.remotestore.RemoteRestoreSnapshotIT.testRestoreInSameRemoteStoreEnabledIndex is flaky #9116

Closed
ashking94 opened this issue Aug 4, 2023 · 9 comments · Fixed by #9795
Assignees
Labels
bug Something isn't working flaky-test Random test failure that succeeds on second run Storage:Remote

Comments

@ashking94
Copy link
Member

Describe the bug
org.opensearch.remotestore.RemoteRestoreSnapshotIT.testRestoreInSameRemoteStoreEnabledIndex test is flaky.

To Reproduce
./gradlew ':server:internalClusterTest' --tests "org.opensearch.remotestore.RemoteRestoreSnapshotIT.testRestoreInSameRemoteStoreEnabledIndex" -Dtests.seed=CA129BD4A6BD4BD1 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=zh-HK -Dtests.timezone=CNT -Druntime.java=20

Expected behavior
Test should pass

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Jenkins build failure link - https://build.ci.opensearch.org/job/gradle-check/21872/

@ashking94 ashking94 added bug Something isn't working untriaged labels Aug 4, 2023
@ashking94
Copy link
Member Author

failure - #8758 (comment)

@ashking94
Copy link
Member Author

Other instances mentioned in #8279

@sachinpkale
Copy link
Member

@harishbhakuni Can you please take a look at this bug?

@peternied
Copy link
Member

Impacted pull request #9357, see jenkins testReport

Repro

./gradlew ':server:internalClusterTest' --tests "org.opensearch.remotestore.RemoteRestoreSnapshotIT.testRestoreInSameRemoteStoreEnabledIndex" -Dtests.seed=DF962FC54758F6F7 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=et-EE -Dtests.timezone=Etc/GMT-4 -Druntime.java=17

Error

java.lang.AssertionError: doc with id0 is not present for index testindex1
	at __randomizedtesting.SeedInfo.seed([DF962FC54758F6F7:276070C607309758]:0)
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.opensearch.remotestore.RemoteRestoreSnapshotIT.assertDocsPresentInIndex(RemoteRestoreSnapshotIT.java:95)
	at org.opensearch.remotestore.RemoteRestoreSnapshotIT.testRestoreInSameRemoteStoreEnabledIndex(RemoteRestoreSnapshotIT.java:355)
	```

@anasalkouz
Copy link
Member

@harishbhakuni what is the update on this?

@harishbhakuni
Copy link
Contributor

@anasalkouz yes i am looking into this, i was not able to reproduce this locally. ran it for 150+ runs locally and it worked fine. but will fix this.

@kotwanikunal
Copy link
Member

Just saw this in #9915

@linuxpi
Copy link
Collaborator

linuxpi commented Jan 9, 2024

@BhumikaSaini-Amazon can you take a look at this test?

@harishbhakuni
Copy link
Contributor

this is an old issue which got fixed in 2.11. ran the test for 100+ runs without any failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flaky-test Random test failure that succeeds on second run Storage:Remote
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

9 participants