Skip to content

Test: started to run SuiteScopeClusterIT.testReproducible and it fails  #36202

@alpar-t

Description

@alpar-t

As part of #36107 we enabled some tests in tests/framework that were not ran previously.
I did not track down when these stopped running. It was added 4 years ago by @s1monw and hasn't changed significantly since.

Reproduce with (not that changes from #36107 are needed and the test is muted):

./gradlew -p test/framework integTest

Fails with:

FAILURE 0.03s J1 | SuiteScopeClusterIT.testReproducible {seed=[E2E2827BF5A51C4C:E8DD6D33BBF14EF1] #10} <<< FAILURES!
   > Throwable #1: java.lang.AssertionError: 
   > Expected: <-8052291450088462583L>
   >      but: was <3678307768093134042L>
   >    at __randomizedtesting.SeedInfo.seed([E2E2827BF5A51C4C:E8DD6D33BBF14EF1]:0)
   >    at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
   >    at org.elasticsearch.test.test.SuiteScopeClusterIT.testReproducible(SuiteScopeClusterIT.java:53)
   >    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   >    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   >    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   >    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   >    at java.base/java.lang.Thread.run(Thread.java:834)

It seems that after the first iteration the randomLong() sequence is entirely different than on the first. I checked and it's not an off by one error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions