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

SCMTrigger thread blocks graceful shutdown

    XMLWordPrintable

Details

    • 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

          johno Johno Crawford created issue -
          johno Johno Crawford added a comment - https://github.com/jenkinsci/jenkins/pull/4805
          johno Johno Crawford made changes -
          Field Original Value New Value
          Labels lts-candidate
          oleg_nenashev Oleg Nenashev made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          oleg_nenashev Oleg Nenashev made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          oleg_nenashev Oleg Nenashev made changes -
          Assignee Johno Crawford [ johno ]
          oleg_nenashev Oleg Nenashev made changes -
          Released As Jenkins 2.243
          Resolution Fixed [ 1 ]
          Status In Review [ 10005 ] Resolved [ 5 ]
          olivergondza Oliver Gondža made changes -
          Labels lts-candidate 2.235.4-fixed

          People

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

            Dates

              Created:
              Updated:
              Resolved: