Skip to content

FileRealmTests#testAuthenticateCaching fails with an assertion error. #31697

Closed
@jtibshirani

Description

@jtibshirani

The failure reliably reproduces for me locally, and may be related to the recent change to password hashing: #31234.


Link to the build: https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+g1gc/6006/console

Command to reproduce:

./gradlew :x-pack:plugin:security:test \
  -Dtests.seed=B944BC5A5B893131 \
  -Dtests.class=org.elasticsearch.xpack.security.authc.file.FileRealmTests \
  -Dtests.method="testAuthenticateCaching" \
  -Dtests.security.manager=true \
  -Dtests.jvm.argline="-XX:-UseConcMarkSweepGC -XX:+UseG1GC" \
  -Dtests.locale=fr-BE \
  -Dtests.timezone=Antarctica/Troll

Relevant excerpt from the logs:

FAILURE 3.40s | FileRealmTests.testAuthenticateCaching <<< FAILURES!
   > Throwable #1: java.lang.AssertionError: 
   > Expected: sameInstance(<User[username=user1,roles=[role1,role2],fullName=null,email=null,metadata={}]>)
   >      but: was <User[username=user1,roles=[role1,role2],fullName=null,email=null,metadata={}]>
   >    at __randomizedtesting.SeedInfo.seed([B944BC5A5B893131:52FC433DA47C405A]:0)
   >    at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
   >    at org.elasticsearch.xpack.security.authc.file.FileRealmTests.testAuthenticateCaching(FileRealmTests.java:103)
   >    at java.lang.Thread.run(Thread.java:748)

Metadata

Metadata

Assignees

Labels

:Security/AuthenticationLogging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)>test-failureTriaged test failures from CI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions