Skip to content

EvilLoggerTests.testDeprecatedSettings fails assertion #25680

@talevy

Description

@talevy

looks like a consistent behavior where-in this test fails on Java 9 in CI

console logs:
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+5.x+java9-periodic/3193/console
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+5.x+java9-periodic/3196/console
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+5.x+java9-periodic/3198/console

FAILURE 0.16s J0 | EvilLoggerTests.testDeprecatedSettings <<< FAILURES!
   > Throwable #1: java.lang.AssertionError: 
   > Expected: <1>
   >      but: was <0>
   > 	at __randomizedtesting.SeedInfo.seed([FA22CEC1F9E81B67:9A5B351BD2070DE8]:0)
   > 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
   > 	at org.elasticsearch.common.logging.EvilLoggerTests.testDeprecatedSettings(EvilLoggerTests.java:271)
   > 	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:564)
   > 	at java.base/java.lang.Thread.run(Thread.java:844)
  2> NOTE: leaving temporary files on disk at: /var/lib/jenkins/workspace/elastic+elasticsearch+5.x+java9-periodic/qa/evil-tests/build/testrun/test/J0/temp/org.elasticsearch.common.logging.EvilLoggerTests_FA22CEC1F9E81B67-001
  2> NOTE: test params are: codec=Asserting(Lucene62): {}, docValues:{}, maxPointsInLeafNode=699, maxMBSortInHeap=6.526490608214228, sim=RandomSimilarity(queryNorm=false,coord=no): {}, locale=dz, timezone=Asia/Kamchatka
  2> NOTE: Linux 4.8.0-53-generic amd64/Oracle Corporation 9 (64-bit)/cpus=8,threads=1,free=333207680,total=536870912
  2> NOTE: All tests run in this JVM: [PluginSecurityTests, ESPolicyUnitTests, EvilSecurityTests, EvilLoggerTests]
Completed [14/14] on J0 in 4.81s, 10 tests, 1 failure <<< FAILURES!

reproduce with (I cannot reproduce):

gradle :qa:evil-tests:test -Dtests.seed=6F4D930464F6F74A -Dtests.class=org.elasticsearch.common.logging.EvilLoggerTests -Dtests.method="testDeprecatedSettings" -Dtests.security.manager=false -Dtests.locale=en-IE -Dtests.timezone=Universal

Metadata

Metadata

Assignees

Labels

>testIssues or PRs that are addressing/adding testsv5.6.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions