Skip to content

Conversation

@laurit
Copy link
Contributor

@laurit laurit commented Oct 30, 2025

https://develocity.opentelemetry.io/s/s3khsy5f64yei/tests/task/:instrumentation:openai:openai-java-1.1:javaagent:test/details/io.opentelemetry.javaagent.instrumentation.openai.v1_1.ChatTest/streamConnectionError()?expanded-stacktrace=WyIyIl0&top-execution=1

It seems that this test fails only on openj9. I have a suspicion that openj9 gc is smart and figures out that some objects like the openai client have become unreachable before the test ends. Openai wraps okhttp in PhantomReachableClosingHttpClient when this object becomes unreachable it will trigger the shutdown of the okhttp client. My guess is that okhttp client gets shut down before the test completes. Hopefully shutting down the openai client at the end of the test ensures that the openai client and the objects it uses won't get shut down too early.

@laurit laurit requested a review from a team as a code owner October 30, 2025 13:40
@laurit laurit enabled auto-merge (squash) October 30, 2025 14:02
@laurit laurit merged commit a2009d7 into open-telemetry:main Oct 30, 2025
89 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