Skip to content

NativeRealmIntegTests fail on master and 7.x #79361

Closed
@przemekwitek

Description

@przemekwitek

Build scan:

https://gradle-enterprise.elastic.co/s/voymlnrgccyq2

Repro line:

REPRODUCE WITH: ./gradlew ':x-pack:plugin:security:internalClusterTest' --tests "org.elasticsearch.xpack.security.authc.esnative.NativeRealmIntegTests.testAddUserAndRoleThenAuth" \
  -Dtests.seed=C99E649FE167748C \
  -Dtests.locale=ms \
  -Dtests.timezone=America/Shiprock \
  -Druntime.java=11

REPRODUCE WITH: ./gradlew ':x-pack:plugin:security:internalClusterTest' --tests "org.elasticsearch.xpack.security.authc.esnative.NativeRealmIntegTests.testAddUserAndRoleThenAuth" \
  -Dtests.seed=C99E649FE167748C \
  -Dtests.locale=ms \
  -Dtests.timezone=America/Shiprock \
  -Druntime.java=11

Reproduces locally?:

No

Applicable branches:

master, 7.x

Failure history:

6 failures this year but 3 new ones (today).

Failure excerpt:

13:48:14 org.elasticsearch.xpack.security.authc.esnative.NativeRealmIntegTests > testAddUserAndRoleThenAuth FAILED
13:48:14     java.lang.NullPointerException
13:48:14         at __randomizedtesting.SeedInfo.seed([C99E649FE167748C:919ACE55FC4DCE80]:0)
13:48:14         at org.elasticsearch.xpack.core.security.authz.accesscontrol.IndicesAccessControl.getFieldAndDocumentLevelSecurityUsage(IndicesAccessControl.java:72)
13:48:14         at org.elasticsearch.xpack.security.authz.interceptor.DlsFlsLicenseRequestInterceptor.intercept(DlsFlsLicenseRequestInterceptor.java:58)
13:48:14         at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:479)
13:48:14         at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:475)
13:48:14         at org.elasticsearch.xpack.security.authz.interceptor.FieldAndDocumentLevelSecurityRequestInterceptor.intercept(FieldAndDocumentLevelSecurityRequestInterceptor.java:75)
13:48:14         at org.elasticsearch.xpack.security.authz.interceptor.UpdateRequestInterceptor.intercept(UpdateRequestInterceptor.java:27)
13:48:14         at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:479)
13:48:14         at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:475)
13:48:14         at org.elasticsearch.xpack.security.authz.interceptor.ResizeRequestInterceptor.intercept(ResizeRequestInterceptor.java:78)
13:48:14         at org.elasticsearch.xpack.security.authz.AuthorizationService.runRequestInterceptors(AuthorizationService.java:474)
13:48:14         at org.elasticsearch.xpack.security.authz.AuthorizationService.handleIndexActionAuthorizationResult(AuthorizationService.java:464)
13:48:14         at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$11(AuthorizationService.java:395)
13:48:14         at org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:781)
13:48:14         at org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:756)
13:48:14         at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
13:48:14         at org.elasticsearch.xpack.security.authz.RBACEngine.lambda$authorizeIndexAction$3(RBACEngine.java:327)
13:48:14         at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134)
13:48:14         at org.elasticsearch.common.util.concurrent.ListenableFuture.notifyListenerDirectly(ListenableFuture.java:113)
13:48:14         at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:55)
13:48:14         at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:41)
13:48:14         at org.elasticsearch.xpack.security.authz.AuthorizationService$CachingAsyncSupplier.getAsync(AuthorizationService.java:828)
13:48:14         at org.elasticsearch.xpack.security.authz.RBACEngine.authorizeIndexAction(RBACEngine.java:318)
13:48:14         at org.elasticsearch.xpack.security.authz.AuthorizationService.authorizeAction(AuthorizationService.java:393)
13:48:14         at org.elasticsearch.xpack.security.authz.AuthorizationService.maybeAuthorizeRunAs(AuthorizationService.java:326)
13:48:14         at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorize$1(AuthorizationService.java:227)
13:48:14         at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134)
13:48:14         at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
13:48:14         at org.elasticsearch.xpack.security.authz.RBACEngine.lambda$resolveAuthorizationInfo$1(RBACEngine.java:128)
13:48:14         at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134)
13:48:14         at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$buildThenMaybeCacheRole$14(CompositeRolesStore.java:362)
13:48:14         at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134)
13:48:14         at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.buildRoleFromDescriptors(CompositeRolesStore.java:509)
13:48:14         at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.buildThenMaybeCacheRole(CompositeRolesStore.java:342)
13:48:14         at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$roles$3(CompositeRolesStore.java:201)
13:48:14         at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134)
13:48:14         at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$loadRoleDescriptorsAsync$18(CompositeRolesStore.java:412)
13:48:14         at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134)
13:48:14         at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
13:48:14         at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:127)
13:48:14         at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$loadRoleDescriptorsAsync$21(CompositeRolesStore.java:432)
13:48:14         at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134)
13:48:14         at org.elasticsearch.xpack.security.authz.store.NativeRolesStore.lambda$getRoleDescriptors$5(NativeRolesStore.java:156)
13:48:14         at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134)
13:48:14         at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
13:48:14         at org.elasticsearch.client.node.NodeClient.lambda$executeLocally$0(NodeClient.java:103)
13:48:14         at org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:169)
13:48:14         at org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:163)
13:48:14         at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
13:48:14         at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$2(SecurityActionFilter.java:146)
13:48:14         at org.elasticsearch.action.ActionListener$DelegatingFailureActionListener.onResponse(ActionListener.java:217)
13:48:14         at org.elasticsearch.action.get.TransportMultiGetAction$1.finishHim(TransportMultiGetAction.java:123)
13:48:14         at org.elasticsearch.action.get.TransportMultiGetAction$1.onResponse(TransportMultiGetAction.java:106)
13:48:14         at org.elasticsearch.action.get.TransportMultiGetAction$1.onResponse(TransportMultiGetAction.java:98)
13:48:14         at org.elasticsearch.client.node.NodeClient.lambda$executeLocally$0(NodeClient.java:103)
13:48:14         at org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:169)
13:48:14         at org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:163)
13:48:14         at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
13:48:14         at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$2(SecurityActionFilter.java:146)
13:48:14         at org.elasticsearch.action.ActionListener$DelegatingFailureActionListener.onResponse(ActionListener.java:217)
13:48:14         at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$2.handleResponse(TransportSingleShardAction.java:240)

Metadata

Metadata

Assignees

Labels

>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