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

ThreadLeakError: 1 thread leaked from SUITE scope at org.apache.solr.search.join.BlockJoinFacetDistribTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.3
    • Tests
    • None

    Description

      I tried to look into the sub. The symptoms looks like. 

      WARN  (jetty-closer-2-thread-2) [    ] o.e.j.u.t.QueuedThreadPool QueuedThreadPool@qtp860938026{STOPPING,8<=9<=10000,i=0,q=1} Couldn't stop Thread[qtp860938
      

      The thread successfully handled one request before. Then we have:

       2> Feb 23, 2018 11:20:41 PM com.carrotsearch.randomizedtesting.ThreadLeakControl checkThreadLeaks
        2> SEVERE: 1 thread leaked from SUITE scope at org.apache.solr.search.join.BlockJoinFacetDistribTest: 
        2>    1) Thread[id=76, name=qtp860938026-76, state=TIMED_WAITING, group=TGRP-BlockJoinFacetDistribTest]
        2>         at sun.misc.Unsafe.park(Native Method)
        2>         at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
        2>         at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2163)
        2>         at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.reservedWait(ReservedThreadExecutor.java:308)
        2>         at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:373)
        2>         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
        2>         at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
        2>         at java.lang.Thread.run(Thread.java:745)
      

      and then

        2> SEVERE: There are still zombie threads that couldn't be terminated:
        2>    1) Thread[id=76, name=qtp860938026-76, state=TIMED_WAITING, group=TGRP-BlockJoinFacetDistribTest]
        2>         at sun.misc.Unsafe.park(Native Method)
        2>         at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
      ...
      [23:19:41.186] ERROR   0.00s | BlockJoinFacetDistribTest (suite) <<<
         > Throwable #1: com.carrotsearch.randomizedtesting.ThreadLeakError: 1 thread leaked from SUITE scope at org.apache.solr.search.join.BlockJoinFacetDistribTest: 
         >    1) Thread[id=76, name=qtp860938026-76, state=TIMED_WAITING, group=TGRP-BlockJoinFacetDistribTest]
         >         at sun.misc.Unsafe.park(Native Method)
         >         at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
         >         at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2163)
         >         at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.reservedWait(ReservedThreadExecutor.java:308)
      

      This also happen to other tests as well, not deterministic, but more or less is reproduced with ant beast.

      Attachments

        1. jetty-threadleak-problem.txt
          151 kB
          Mikhail Khludnev
        2. jetty-threadleak-problem-still.txt
          149 kB
          Mikhail Khludnev
        3. SOLR-12027.patch
          2 kB
          Mikhail Khludnev
        4. SOLR-12027.patch
          1 kB
          Mikhail Khludnev

        Issue Links

          Activity

            People

              mkhl Mikhail Khludnev
              mkhl Mikhail Khludnev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: