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

Parallel Pipeline random java.lang.InterruptedException

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • workflow-durable-task-step 2.29

      In my pipeline job,
      sometimes it'd randomly receive the java.lang.InterruptedException below:

      java.lang.InterruptedException
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1302)
      	at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:275)
      	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:111)
      	at org.jenkinsci.plugins.workflow.cps.CpsStepContext.getThreadGroupSynchronously(CpsStepContext.java:248)
      	at org.jenkinsci.plugins.workflow.cps.CpsStepContext.getThreadSynchronously(CpsStepContext.java:237)
      	at org.jenkinsci.plugins.workflow.cps.CpsStepContext.doGet(CpsStepContext.java:294)
      	at org.jenkinsci.plugins.workflow.support.DefaultStepContext.get(DefaultStepContext.java:61)
      	at org.jenkinsci.plugins.workflow.steps.StepDescriptor.checkContextAvailability(StepDescriptor.java:251)
      	at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:179)
      	at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:126)
      	at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:108)
      	at org.jenkinsci.plugins.workflow.cps.CpsScript.println(CpsScript.java:207)
      	at org.jenkinsci.plugins.workflow.cps.CpsScript.print(CpsScript.java:202)
      	at sun.reflect.GeneratedMethodAccessor103253.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      ....
      ....
      

      Please refer to the file attachment for the full console log and the pipeline Jenkinsfile code.

        1. workflow-durable-task-step.hpi
          85 kB
        2. jenkins.log
          266 kB
        3. stuff.tgz
          310 kB
        4. hs_err_pid239040.log
          84 kB
        5. Jenkinsfile
          7 kB
        6. Jenkinsfile.txt
          6 kB
        7. consoleText_ERROR.txt
          95 kB

          [JENKINS-46507] Parallel Pipeline random java.lang.InterruptedException

          Rick Liu created issue -
          Rick Liu made changes -
          Attachment New: consoleText_ERROR.txt [ 39512 ]
          Rick Liu made changes -
          Attachment New: Jenkinsfile.groovy [ 39513 ]
          Rick Liu made changes -
          Attachment New: Jenkinsfile.txt [ 39514 ]
          Rick Liu made changes -
          Attachment Original: Jenkinsfile.groovy [ 39513 ]
          Rick Liu made changes -
          Environment Original: Ubuntu 14.04.5 LTS
          Jenkins ver. 2.46.1
          Pipeline: API ver. 2.12
          Pipeline: Basic Steps ver. 2.4
          Pipeline: Build Step ver. 2.4
          Lockable Resources plugin ver. 1.11.2
          New: Ubuntu 14.04.5 LTS
          Jenkins ver. 2.46.1
          Pipeline: API ver. 2.12
          Pipeline: Basic Steps ver. 2.4
          Pipeline: Build Step ver. 2.4
          Pipeline: Groovy ver. 2.29
          Lockable Resources plugin ver. 1.11.2
          Rick Liu made changes -
          Component/s New: workflow-cps-plugin [ 21713 ]
          Rick Liu made changes -
          Component/s Original: pipeline [ 21692 ]
          Rick Liu made changes -
          Component/s New: pipeline [ 21692 ]
          Rick Liu made changes -
          Environment Original: Ubuntu 14.04.5 LTS
          Jenkins ver. 2.46.1
          Pipeline: API ver. 2.12
          Pipeline: Basic Steps ver. 2.4
          Pipeline: Build Step ver. 2.4
          Pipeline: Groovy ver. 2.29
          Lockable Resources plugin ver. 1.11.2
          New: Ubuntu 14.04.5 LTS
          openjdk version "1.8.0_111"
          Jenkins ver. 2.46.1
          Pipeline: API ver. 2.12
          Pipeline: Basic Steps ver. 2.4
          Pipeline: Build Step ver. 2.4
          Pipeline: Groovy ver. 2.29
          Lockable Resources plugin ver. 1.11.2
          Rick Liu made changes -
          Summary Original: Pipeline random java.lang.InterruptedException New: Parallel Pipeline random java.lang.InterruptedException

            dnusbaum Devin Nusbaum
            totoroliu Rick Liu
            Votes:
            19 Vote for this issue
            Watchers:
            30 Start watching this issue

              Created:
              Updated:
              Resolved: