Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
9.1.1
-
None
-
None
Description
4.7% failure of the test OtelTracerConfiguratorTest.
org.apache.solr.opentelemetry.OtelTracerConfiguratorTest > classMethod FAILED com.carrotsearch.randomizedtesting.ThreadLeakError: 1 thread leaked from SUITE scope at org.apache.solr.opentelemetry.OtelTracerConfiguratorTest: 1) Thread[id=64, name=BatchSpanProcessor_WorkerThread-1, state=TIMED_WAITING, group=TGRP-OtelTracerConfiguratorTest] at java.base@11.0.16/jdk.internal.misc.Unsafe.park(Native Method) at java.base@11.0.16/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:234) at java.base@11.0.16/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2123) at java.base@11.0.16/java.util.concurrent.ArrayBlockingQueue.poll(ArrayBlockingQueue.java:432) at app//io.opentelemetry.sdk.trace.export.BatchSpanProcessor$Worker.run(BatchSpanProcessor.java:252) at java.base@11.0.16/java.lang.Thread.run(Thread.java:829) at __randomizedtesting.SeedInfo.seed([CCCE79C05B3FB703]:0)
The tracer uses a BatchSpanProcessor by default, which has its own thread. It will eventually exit, but the test fails
Attachments
Issue Links
- links to