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] Test org.opensearch.action.admin.cluster.stats.ClusterStatsIT.testNodeRolesWithDataNodeLegacySetting is flaky #7327

Closed
kotwanikunal opened this issue Apr 28, 2023 · 4 comments · Fixed by #7395
Assignees
Labels
bug Something isn't working flaky-test Random test failure that succeeds on second run

Comments

@kotwanikunal
Copy link
Member

Describe the bug
Test org.opensearch.action.admin.cluster.stats.ClusterStatsIT.testNodeRolesWithDataNodeLegacySetting is flaky

To Reproduce

./gradlew ':server:internalClusterTest' --tests "org.opensearch.action.admin.cluster.stats.ClusterStatsIT.testNodeRolesWithDataNodeLegacySettings" -Dtests.seed=5568C86430BA738A -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=ar-LY -Dtests.timezone=Atlantic/Bermuda

Screenshots

rg.opensearch.action.admin.cluster.stats.ClusterStatsIT > testNodeRolesWithDataNodeLegacySettings FAILED
    java.lang.IllegalArgumentException: duplicate element: [cluster_manager]
        at __randomizedtesting.SeedInfo.seed([5568C86430BA738A:7C15068B9D7AB34C]:0)
        at java.base/java.util.ImmutableCollections$Set12.<init>(ImmutableCollections.java:791)
        at java.base/java.util.Set.of(Set.java:487)
        at org.opensearch.action.admin.cluster.stats.ClusterStatsIT.testNodeRolesWithDataNodeLegacySettings(ClusterStatsIT.java:415)

https://build.ci.opensearch.org/job/gradle-check/14643/console

Additional context
#7323

@kotwanikunal kotwanikunal added bug Something isn't working untriaged flaky-test Random test failure that succeeds on second run labels Apr 28, 2023
@dblock
Copy link
Member

dblock commented May 1, 2023

Another one in #7333, https://build.ci.opensearch.org/job/gradle-check/14650/. Got a consistent repro with ./gradlew ':server:internalClusterTest' --tests "org.opensearch.action.admin.cluster.stats.ClusterStatsIT.testNodeRolesWithDataNodeLegacySettings" -Dtests.seed=464D695B7CAC6C07 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=ca -Dtests.timezone=Africa/Bamako -Druntime.java=19

@kotwanikunal
Copy link
Member Author

I think the flakiness was introduced as a part of #6331

@reta
Copy link
Collaborator

reta commented May 10, 2023

Still happening (on 2.x at least): https://build.ci.opensearch.org/job/gradle-check/15182/

Error Message

java.lang.IllegalArgumentException: duplicate element: [data, remote_cluster_client]

Stacktrace

java.lang.IllegalArgumentException: duplicate element: [data, remote_cluster_client]
	at __randomizedtesting.SeedInfo.seed([58F1ABE3FCC33CFA:718C650C5103FC3C]:0)
	at java.base/java.util.ImmutableCollections$Set12.<init>(ImmutableCollections.java:791)
	at java.base/java.util.Set.of(Set.java:487)
	at org.opensearch.action.admin.cluster.stats.ClusterStatsIT.testNodeRolesWithDataNodeLegacySettings(ClusterStatsIT.java:415)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1750)
	at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:938)
	at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:974)
	at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:988)
	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)

@kotwanikunal
Copy link
Member Author

The fix wasn't backported @reta. Doing it now.

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants