Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62695

SCMTrigger thread blocks graceful shutdown

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      Jenkins 2.243

      Description

      When shutting down Jenkins with SCMTriggers configured in a Tomcat container the JVM does not exit gracefully, thread dump shows the following non-daemon threads.

       

      "SCMTrigger 9" #1553 prio=5 os_prio=0 tid=0x00007f4a7819f800 nid=0x2fa8 waiting on condition [0x00007f4a32bc9000]
         java.lang.Thread.State: WAITING (parking)
              at sun.misc.Unsafe.park(Native Method)
              - parking to wait for  <0x0000000082867878> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
              at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
              at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
              at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)

        Attachments

          Activity

          Show
          johno Johno Crawford added a comment - https://github.com/jenkinsci/jenkins/pull/4805

            People

            Assignee:
            johno Johno Crawford
            Reporter:
            johno Johno Crawford
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: