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

[7.14] [ML] API integration tests for APM latency correlation. (#104644) #105506

Closed

Conversation

kibanamachine
Copy link
Contributor

Backports the following commits to 7.14:

Adds API integration tests for APM Latency Correlations code.

Writing the tests surfaced some glitches fixed as part of this PR:
- If the applied filters don't return any docs, we won't throw an error anymore. Instead, the async search service finishes early and just returns no results.
- If for whatever reason the async search service throws an error, it will also set its state now to isRunning = false.
- If the client triggers a request with a service ID we now make sure that async search service still exists. We throw an error if that service no longer exists. This avoids re-instantiating async search services when they've already finished or failed and for whatever reason a client triggers another request with the same ID.
- Refactored requests to reuse APM's own getCorrelationsFilters(). We now require start/end to be set and it will be converted from ISO (client side) to epochmillis (server side) to be more in line with APM's existing code.
- The async search service now creates a simple internal log. This gets exposed via the API and we assert it using the API tests. In the future, we might also expose it in the UI to allow for better problem investigation for users and support.
@walterra
Copy link
Contributor

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor Author

kibanamachine commented Jul 14, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / APM API Integration tests (trial).x-pack/test/apm_api_integration/tests/index·ts.APM API tests trial ml_8.0.0 "before all" hook: runBefore in "ml_8.0.0"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://dryrun

[00:00:00]       │
[00:00:00]         └-: APM API tests
[00:00:00]           └-> "before all" hook in "APM API tests"
[00:00:00]           └-: trial
[00:00:00]             └-> "before all" hook in "trial"
[00:00:00]             └-: ml_8.0.0
[00:00:00]               └-> "before all" hook in "ml_8.0.0"
[00:00:00]               └-> "before all" hook: runBefore in "ml_8.0.0"
[00:00:00]                 │ info (0ms) Loading ml_8.0.0
[00:00:00]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] Loading "mappings.json"
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:00:00]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] Loading "data.json.gz"
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-annotations-6][0]]]).
[00:00:00]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] Created index ".ml-annotations-6"
[00:00:00]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] ".ml-annotations-6" settings {"index":{"auto_expand_replicas":"0-1","hidden":"true","number_of_replicas":"1","number_of_shards":"1"}}
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-anomalies-shared][0]]]).
[00:00:00]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] Created index ".ml-anomalies-shared"
[00:00:00]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] ".ml-anomalies-shared" settings {"index":{"auto_expand_replicas":"0-1","hidden":"true","number_of_replicas":"1","number_of_shards":"1","translog":{"durability":"async"}}}
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-config] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-config]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-config][0]]]).
[00:00:00]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] Created index ".ml-config"
[00:00:00]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] ".ml-config" settings {"index":{"auto_expand_replicas":"0-1","max_result_window":"10000","number_of_replicas":"1","number_of_shards":"1"}}
[00:00:00]                 │ info [r.suppressed] [node-01] path: /.ml-state-000001, params: {include_type_name=true, index=.ml-state-000001}
[00:00:00]                 │      java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.util.Map (java.lang.Boolean and java.util.Map are in module java.base of loader 'bootstrap')
[00:00:00]                 │      	at org.elasticsearch.action.admin.indices.create.CreateIndexRequest.source(CreateIndexRequest.java:418) ~[elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.rest.action.admin.indices.RestCreateIndexAction.prepareRequest(RestCreateIndexAction.java:62) ~[elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:83) ~[elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$0(SecurityRestFilter.java:88) ~[?:?]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.lambda$authenticateAndAttachToContext$2(SecondaryAuthenticator.java:83) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticate(SecondaryAuthenticator.java:93) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticateAndAttachToContext(SecondaryAuthenticator.java:78) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$2(SecurityRestFilter.java:82) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$writeAuthToContext$26(AuthenticationService.java:717) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.writeAuthToContext(AuthenticationService.java:735) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.finishAuthentication(AuthenticationService.java:706) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.consumeUser(AuthenticationService.java:653) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$consumeToken$18(AuthenticationService.java:523) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:127) [x-pack-core-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$consumeToken$15(AuthenticationService.java:489) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$1(CachingUsernamePasswordRealm.java:147) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.handleCachedAuthentication(CachingUsernamePasswordRealm.java:227) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$2(CachingUsernamePasswordRealm.java:139) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.common.util.concurrent.ListenableFuture.notifyListenerDirectly(ListenableFuture.java:113) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:55) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticateWithCache(CachingUsernamePasswordRealm.java:134) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticate(CachingUsernamePasswordRealm.java:105) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$consumeToken$17(AuthenticationService.java:478) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:103) [x-pack-core-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.consumeToken(AuthenticationService.java:533) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$extractToken$13(AuthenticationService.java:445) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.extractToken(AuthenticationService.java:455) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$checkForApiKey$5(AuthenticationService.java:396) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.ApiKeyService.authenticateWithApiKeyIfPresent(ApiKeyService.java:422) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.checkForApiKey(AuthenticationService.java:377) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$checkForBearerToken$3(AuthenticationService.java:361) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.TokenService.tryAuthenticateToken(TokenService.java:393) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.checkForBearerToken(AuthenticationService.java:357) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$authenticateAsync$0(AuthenticationService.java:338) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$lookForExistingAuthentication$8(AuthenticationService.java:414) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lookForExistingAuthentication(AuthenticationService.java:425) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.Authen
[00:00:00]                 │ info ticationService$Authenticator.authenticateAsync(AuthenticationService.java:333) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.access$000(AuthenticationService.java:274) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:152) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:137) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:75) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:274) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:356) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:195) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:451) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:516) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:378) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:31) [transport-netty4-client-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:17) [transport-netty4-client-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:47) [transport-netty4-client-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) [netty-handler-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:615) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:578) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [netty-common-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at java.lang.Thread.run(Thread.java:831) [?:?]
[00:00:00]                 └- ✖ fail: APM API tests trial ml_8.0.0 "before all" hook: runBefore in "ml_8.0.0"
[00:00:00]                 │      ResponseError: class_cast_exception: [class_cast_exception] Reason: class java.lang.Boolean cannot be cast to class java.util.Map (java.lang.Boolean and java.util.Map are in module java.base of loader 'bootstrap')
[00:00:00]                 │       at onBody (/dev/shm/workspace/parallel/13/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:00:00]                 │       at IncomingMessage.onEnd (/dev/shm/workspace/parallel/13/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:00:00]                 │       at endReadableNT (internal/streams/readable.js:1317:12)
[00:00:00]                 │       at processTicksAndRejections (internal/process/task_queues.js:82:21)
[00:00:00]                 │ 
[00:00:00]                 │ 

Stack Trace

ResponseError: class_cast_exception: [class_cast_exception] Reason: class java.lang.Boolean cannot be cast to class java.util.Map (java.lang.Boolean and java.util.Map are in module java.base of loader 'bootstrap')
    at onBody (/dev/shm/workspace/parallel/13/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
    at IncomingMessage.onEnd (/dev/shm/workspace/parallel/13/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
    at endReadableNT (internal/streams/readable.js:1317:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {
  meta: {
    body: { error: [Object], status: 500 },
    statusCode: 500,
    headers: {
      'content-type': 'application/json; charset=UTF-8',
      'content-length': '415'
    },
    meta: {
      context: null,
      request: [Object],
      name: 'elasticsearch-js',
      connection: [Object],
      attempts: 0,
      aborted: false
    }
  }
}

Kibana Pipeline / general / APM API Integration tests (trial).x-pack/test/apm_api_integration/tests/index·ts.APM API tests trial ml_8.0.0 "before all" hook: runBefore in "ml_8.0.0"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: APM API tests
[00:00:00]           └-> "before all" hook in "APM API tests"
[00:00:00]           └-: trial
[00:00:00]             └-> "before all" hook in "trial"
[00:00:00]             └-: ml_8.0.0
[00:00:00]               └-> "before all" hook in "ml_8.0.0"
[00:00:00]               └-> "before all" hook: runBefore in "ml_8.0.0"
[00:00:00]                 │ info (0ms) Loading ml_8.0.0
[00:00:00]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] Loading "mappings.json"
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:00:00]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] Loading "data.json.gz"
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-annotations-6][0]]]).
[00:00:00]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] Created index ".ml-annotations-6"
[00:00:00]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] ".ml-annotations-6" settings {"index":{"auto_expand_replicas":"0-1","hidden":"true","number_of_replicas":"1","number_of_shards":"1"}}
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-anomalies-shared][0]]]).
[00:00:00]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] Created index ".ml-anomalies-shared"
[00:00:00]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] ".ml-anomalies-shared" settings {"index":{"auto_expand_replicas":"0-1","hidden":"true","number_of_replicas":"1","number_of_shards":"1","translog":{"durability":"async"}}}
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-config] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-config]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-config][0]]]).
[00:00:00]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] Created index ".ml-config"
[00:00:00]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/ml_8.0.0] ".ml-config" settings {"index":{"auto_expand_replicas":"0-1","max_result_window":"10000","number_of_replicas":"1","number_of_shards":"1"}}
[00:00:00]                 │ info [r.suppressed] [node-01] path: /.ml-state-000001, params: {include_type_name=true, index=.ml-state-000001}
[00:00:00]                 │      java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.util.Map (java.lang.Boolean and java.util.Map are in module java.base of loader 'bootstrap')
[00:00:00]                 │      	at org.elasticsearch.action.admin.indices.create.CreateIndexRequest.source(CreateIndexRequest.java:418) ~[elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.rest.action.admin.indices.RestCreateIndexAction.prepareRequest(RestCreateIndexAction.java:62) ~[elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:83) ~[elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$0(SecurityRestFilter.java:88) ~[?:?]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.lambda$authenticateAndAttachToContext$2(SecondaryAuthenticator.java:83) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticate(SecondaryAuthenticator.java:93) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticateAndAttachToContext(SecondaryAuthenticator.java:78) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$2(SecurityRestFilter.java:82) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$writeAuthToContext$26(AuthenticationService.java:717) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.writeAuthToContext(AuthenticationService.java:735) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.finishAuthentication(AuthenticationService.java:706) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.consumeUser(AuthenticationService.java:653) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$consumeToken$18(AuthenticationService.java:523) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:127) [x-pack-core-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$consumeToken$15(AuthenticationService.java:489) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$1(CachingUsernamePasswordRealm.java:147) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.handleCachedAuthentication(CachingUsernamePasswordRealm.java:227) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$2(CachingUsernamePasswordRealm.java:139) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.common.util.concurrent.ListenableFuture.notifyListenerDirectly(ListenableFuture.java:113) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:55) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticateWithCache(CachingUsernamePasswordRealm.java:134) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticate(CachingUsernamePasswordRealm.java:105) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$consumeToken$17(AuthenticationService.java:478) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:103) [x-pack-core-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.consumeToken(AuthenticationService.java:533) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$extractToken$13(AuthenticationService.java:445) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.extractToken(AuthenticationService.java:455) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$checkForApiKey$5(AuthenticationService.java:396) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.ApiKeyService.authenticateWithApiKeyIfPresent(ApiKeyService.java:422) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.checkForApiKey(AuthenticationService.java:377) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$checkForBearerToken$3(AuthenticationService.java:361) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:134) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.TokenService.tryAuthenticateToken(TokenService.java:393) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.checkForBearerToken(AuthenticationService.java:357) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$authenticateAsync$0(AuthenticationService.java:338) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$lookForExistingAuthentication$8(AuthenticationService.java:414) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lookForExistingAuthentication(AuthenticationService.java:425) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.Authen
[00:00:00]                 │ info ticationService$Authenticator.authenticateAsync(AuthenticationService.java:333) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.access$000(AuthenticationService.java:274) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:152) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:137) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:75) [x-pack-security-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:274) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:356) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:195) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:451) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:516) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:378) [elasticsearch-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:31) [transport-netty4-client-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:17) [transport-netty4-client-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:47) [transport-netty4-client-7.14.0-SNAPSHOT.jar:7.14.0-SNAPSHOT]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) [netty-handler-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:615) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:578) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [netty-common-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.49.Final.jar:4.1.49.Final]
[00:00:00]                 │      	at java.lang.Thread.run(Thread.java:831) [?:?]
[00:00:00]                 └- ✖ fail: APM API tests trial ml_8.0.0 "before all" hook: runBefore in "ml_8.0.0"
[00:00:00]                 │      ResponseError: class_cast_exception: [class_cast_exception] Reason: class java.lang.Boolean cannot be cast to class java.util.Map (java.lang.Boolean and java.util.Map are in module java.base of loader 'bootstrap')
[00:00:00]                 │       at onBody (/dev/shm/workspace/parallel/13/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:00:00]                 │       at IncomingMessage.onEnd (/dev/shm/workspace/parallel/13/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:00:00]                 │       at endReadableNT (internal/streams/readable.js:1317:12)
[00:00:00]                 │       at processTicksAndRejections (internal/process/task_queues.js:82:21)
[00:00:00]                 │ 
[00:00:00]                 │ 

Stack Trace

ResponseError: class_cast_exception: [class_cast_exception] Reason: class java.lang.Boolean cannot be cast to class java.util.Map (java.lang.Boolean and java.util.Map are in module java.base of loader 'bootstrap')
    at onBody (/dev/shm/workspace/parallel/13/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
    at IncomingMessage.onEnd (/dev/shm/workspace/parallel/13/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
    at endReadableNT (internal/streams/readable.js:1317:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {
  meta: {
    body: { error: [Object], status: 500 },
    statusCode: 500,
    headers: {
      'content-type': 'application/json; charset=UTF-8',
      'content-length': '415'
    },
    meta: {
      context: null,
      request: [Object],
      name: 'elasticsearch-js',
      connection: [Object],
      attempts: 0,
      aborted: false
    }
  }
}

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
apm 4.3MB 4.3MB -4.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @walterra

@walterra
Copy link
Contributor

Closing in favour of #105606.

@walterra walterra closed this Jul 15, 2021
auto-merge was automatically disabled July 15, 2021 08:24

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants