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

Fix flaky java http server tests #13474

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Mar 7, 2025

https://scans.gradle.com/s/6pr5nphlmr3yk/tests/task/:instrumentation:java-http-server:javaagent:test/details/io.opentelemetry.javaagent.instrumentation.javahttpserver.JavaHttpServerTest/requestWithRedirect()?top-execution=1

When response does not have a body (content length is -1) then response is closed in sendResponseHeaders. Closing it again triggers an assertion error on jdk 11. This assertion error may be picked up by awaitility, that installs an uncaught exception handler, and retrhown on the main test thread.

@laurit laurit requested a review from a team as a code owner March 7, 2025 13:29
@trask trask merged commit e521e6c into open-telemetry:main Mar 7, 2025
85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants