Skip to content

[CI] CliApiKeyIT testCliConnectionWithInvalidApiKey failing #143018

@elasticsearchmachine

Description

@elasticsearchmachine

Build Scans:

Reproduction Line:

gradlew ":x-pack:plugin:sql:qa:server:security:with-ssl:javaRestTest" --tests "org.elasticsearch.xpack.sql.qa.security.CliApiKeyIT.testCliConnectionWithInvalidApiKey" -Dtests.seed=D9FA802C49375459 -Dtests.locale=bs-Latn -Dtests.timezone=Canada/Central -Druntime.java=25

Applicable branches:
main

Reproduces locally?:
N/A

Failure History:
See dashboard

Failure Message:

java.lang.AssertionError: unconsumed lines
Expected: an empty collection
     but: <[	at org.elasticsearch.xpack.sql.client.JreHttpUrlConnection.request(JreHttpUrlConnection.java:190), 	at org.elasticsearch.xpack.sql.client.HttpClient.lambda$post$1(HttpClient.java:169), 	at org.elasticsearch.xpack.sql.client.JreHttpUrlConnection.http(JreHttpUrlConnection.java:82), 	at org.elasticsearch.xpack.sql.client.HttpClient.lambda$post$2(HttpClient.java:165), 	at java.base/java.security.AccessController.doPrivileged(AccessController.java:74), 	at org.elasticsearch.xpack.sql.client.HttpClient.post(HttpClient.java:164), 	at org.elasticsearch.xpack.sql.client.HttpClient.query(HttpClient.java:131), 	at org.elasticsearch.xpack.sql.client.HttpClient.basicQuery(HttpClient.java:127), 	at org.elasticsearch.xpack.sql.cli.command.ServerQueryCliCommand.doHandle(ServerQueryCliCommand.java:30), 	at org.elasticsearch.xpack.sql.cli.command.AbstractServerCliCommand.handle(AbstractServerCliCommand.java:18), 	at 
[truncated]

Issue Reasons:

  • [main] 6 consecutive failures in test testCliConnectionWithInvalidApiKey
  • [main] 8 consecutive failures in step windows-2022_checkpart4_platform-support-windows
  • [main] 8 consecutive failures in step windows-2025_checkpart4_platform-support-windows
  • [main] 2 consecutive failures in step checkpart4_windows-2025
  • [main] 36 failures in test testCliConnectionWithInvalidApiKey (4.1% fail rate in 870 executions)
  • [main] 8 failures in step windows-2022_checkpart4_platform-support-windows (100.0% fail rate in 8 executions)
  • [main] 8 failures in step windows-2025_checkpart4_platform-support-windows (100.0% fail rate in 8 executions)
  • [main] 2 failures in step checkpart4_windows-2025 (100.0% fail rate in 2 executions)
  • [main] 4 failures in pipeline elasticsearch-periodic-platform-support (100.0% fail rate in 4 executions)
  • [main] 2 failures in pipeline elasticsearch-periodic-java-ea (66.7% fail rate in 3 executions)

Note:
This issue was created using new test triage automation. Please report issues or feedback to es-delivery.

Metadata

Metadata

Labels

:Analytics/SQLSQL querying>test-failureTriaged test failures from CITeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)low-riskAn open issue or test failure that is a low risk to future releases

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions