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

Active wait on job start

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • core
    • Jenkins: 2.73.3 on a Docker container and jenkins_home on nfs4
      Java: OpenJDK JRE 1.8.0_151-8u151-b12-1~deb9u1-b12 64 bits
      OS: Linux 4.4.0-98-generic amd64

      Since we moved to a NFS filesystem, sometimes (apparently) random jobs hang after the message below, before doing anything else.

      Report Zero 142 log:

      "Started by timer

      [Pipeline] node

      Running on Jenkins in /var/jenkins_home/.jenkins/workspace/Report Zero"

       

      When failing, the job seems to be locked on some resource, but all the other jobs (except the one locked) proceed without issue, even if started (nearly) at the same time.

      I attached the master's thread dump, system properties and the plugin list.

       

      It seems it was hanging on the section below when I extracted the ThreadDump:

      "jenkins.util.Timer 10" Id=142 Group=main TIMED_WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@52cafa24
      at sun.misc.Unsafe.park(Native Method)

      waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@52cafa24
      at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
      at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
      at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
      at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
      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)

       

      PS: I don't know if moving to NFS caused the issue, but it is the main difference in the last few weeks.

        1. ThreadDump.txt
          75 kB
        2. Plugins.txt
          3 kB
        3. SystemProperties.txt
          3 kB

            Unassigned Unassigned
            ricardobernardino Ricardo Bernardino
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: