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 http pipelining test on akka http #8437

Merged
merged 1 commit into from
May 9, 2023

Conversation

laurit
Copy link
Contributor

@laurit laurit commented May 8, 2023

https://ge.opentelemetry.io/scans/tests?search.buildOutcome=success&search.tags=CI&search.timeZoneId=Europe/Tallinn&tests.container=io.opentelemetry.javaagent.instrumentation.akkahttp.AkkaHttpServerInstrumentationTest&tests.sortField=FLAKY&tests.unstableOnly=true
Pipelining test is flaky because in #8174 we allowed leaking the scope in akka http server instrumentation and closed the leaked scope in the actor. Apparently with pipelining it is possible that the leaked scope from previous request is active when we start handling the next pipelined request. This pr removes leaking and instead activates scope when the akka graph magic calls user code.

@laurit laurit requested a review from a team May 8, 2023 13:34
@trask trask added this to the v1.26.0 milestone May 8, 2023
@laurit laurit merged commit 8e016a7 into open-telemetry:main May 9, 2023
@laurit laurit deleted the akka-http-context-leak branch May 9, 2023 08:18
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.

3 participants