Skip to content

Conversation

mark-vieira
Copy link
Contributor

This is an attempt to address test failures in #136913 which are believed to be a side effect of test fixture ordering. As it is, we are stopping ES and then the mock APM server. It's not clear how the APM client handles this but it seems like it is either truncating requests, or terminating connections before the server can send a response. This makes the JDK HttpServer cranky. To avoid this or other special resilient handling, we just tweak the fixture ordering such that we stop the APM server before ES. This should avoid the scenario of partial request bodies or closed connections.

@mark-vieira mark-vieira added >test Issues or PRs that are addressing/adding tests :Core/Infra/Core Core issues without another label labels Oct 21, 2025
@mark-vieira mark-vieira linked an issue Oct 21, 2025 that may be closed by this pull request
@elasticsearchmachine elasticsearchmachine added v8.19.7 Team:Core/Infra Meta label for core/infra team labels Oct 21, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

Copy link
Contributor

@ldematte ldematte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for investigating! Let's hope this fixes the problem for good.

@mark-vieira mark-vieira added auto-backport Automatically create backport pull requests when merged v9.1.0 v9.2.1 v9.3.0 labels Oct 22, 2025
@mark-vieira mark-vieira merged commit 823d7f9 into elastic:8.19 Oct 22, 2025
23 checks passed
mark-vieira added a commit to mark-vieira/elasticsearch that referenced this pull request Oct 22, 2025
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.1
9.2
main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team >test Issues or PRs that are addressing/adding tests v8.19.7 v9.1.0 v9.2.1 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] TracesApmIT testApmIntegration failing

3 participants