Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16683

Frequent failures of OtelTracerConfiguratorTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.1.1
    • 9.2
    • 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

          Activity

            People

              janhoy Jan Høydahl
              janhoy Jan Høydahl
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m