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

SOLR-16683 Fix frequent failures of OtelTracerConfiguratorTest #1413

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

janhoy
Copy link
Contributor

@janhoy janhoy commented Mar 1, 2023

https://issues.apache.org/jira/browse/SOLR-16683

The @ThreadLeakLingering should be in millis, not seconds, so 10 means 10ms, but we should wait for 10s.

Signed-off-by: Jan Høydahl <janhoy@users.noreply.github.com>
@janhoy janhoy requested a review from dsmiley March 1, 2023 22:35
@risdenk
Copy link
Contributor

risdenk commented Mar 2, 2023

I haven't tried these changes, but its sad that the worker thread is just unmanaged and can't be shutdown.

https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpanProcessor.java#L85

@janhoy
Copy link
Contributor Author

janhoy commented Mar 2, 2023

I haven't tried these changes, but its sad that the worker thread is just unmanaged and can't be shutdown.

Yes, they should allow passing in an executor or otherwise control it. But Hopefully the timeouts set in the test will now cause the worker to shutdown within 10s.

@janhoy janhoy merged commit f9b800f into apache:main Mar 2, 2023
@janhoy janhoy deleted the SOLR-16683-fix-otel-test-threadleak branch March 2, 2023 17:47
janhoy added a commit that referenced this pull request Mar 2, 2023
Signed-off-by: Jan Høydahl <janhoy@users.noreply.github.com>
(cherry picked from commit f9b800f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants