Active wait on job start

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Blocker
    • Component/s: core
    • Environment:
      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. Plugins.txt
          3 kB
        2. SystemProperties.txt
          3 kB
        3. ThreadDump.txt
          75 kB

            Assignee:
            Unassigned
            Reporter:
            Ricardo Bernardino
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: