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

JClouds plugin deadlock

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: jclouds-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.489, jclouds plugin 2.3.1
    • Similar Issues:

      Description

      Jenkins deadlocks on JCloudsRetentionStrategy (we did a copy job in the GUI when it happened). Attached full stack trace, here are the deadlocks:

      "Remove Node i-42020766":
              at jenkins.plugins.jclouds.compute.JCloudsRetentionStrategy.check(JCloudsRetentionStrategy.java:22)
              - waiting to lock <0x00000006cbca8a60> (a jenkins.plugins.jclouds.compute.JCloudsRetentionStrategy)
              at jenkins.plugins.jclouds.compute.JCloudsRetentionStrategy.check(JCloudsRetentionStrategy.java:15)
              at hudson.slaves.SlaveComputer.setNode(SlaveComputer.java:522)
              at hudson.model.AbstractCIBase.updateComputer(AbstractCIBase.java:116)
              at hudson.model.AbstractCIBase.updateComputerList(AbstractCIBase.java:174)
              - locked <0x00000006c06d1088> (a java.lang.Object)
              at jenkins.model.Jenkins.updateComputerList(Jenkins.java:1175)
              at jenkins.model.Jenkins.setNodes(Jenkins.java:1687)
              at jenkins.model.Jenkins.removeNode(Jenkins.java:1682)
              - locked <0x00000006c06d0f70> (a hudson.model.Hudson)
              at hudson.plugins.ec2.EC2Slave$1.run(EC2Slave.java:104)
      
      "Jenkins cron thread":
              at jenkins.model.Jenkins.save(Jenkins.java:2573)
              - waiting to lock <0x00000006c06d0f70> (a hudson.model.Hudson)
              at hudson.model.Node.setTemporaryOfflineCause(Node.java:211)
              at hudson.model.Computer.setTemporarilyOffline(Computer.java:586)
              at jenkins.plugins.jclouds.compute.JCloudsRetentionStrategy.check(JCloudsRetentionStrategy.java:30)
              - locked <0x00000006cbca8a60> (a jenkins.plugins.jclouds.compute.JCloudsRetentionStrategy)
              at jenkins.plugins.jclouds.compute.JCloudsRetentionStrategy.check(JCloudsRetentionStrategy.java:15)
              at hudson.slaves.ComputerRetentionWork.doRun(ComputerRetentionWork.java:66)
              at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
              at java.util.TimerThread.mainLoop(Timer.java:512)
              at java.util.TimerThread.run(Timer.java:462)
      

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kei YAMAZAKI
            Path:
            jclouds-plugin/src/main/java/jenkins/plugins/jclouds/compute/JCloudsRetentionStrategy.java
            http://jenkins-ci.org/commit/jclouds-plugin/34820cebf612d0975acd91e2fc44c1cdc385c8d0
            Log:
            JENKINS-15820 Fix NPE

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kei YAMAZAKI Path: jclouds-plugin/src/main/java/jenkins/plugins/jclouds/compute/JCloudsRetentionStrategy.java http://jenkins-ci.org/commit/jclouds-plugin/34820cebf612d0975acd91e2fc44c1cdc385c8d0 Log: JENKINS-15820 Fix NPE
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Marat Mavlyutov
            Path:
            jclouds-plugin/src/main/java/jenkins/plugins/jclouds/compute/JCloudsRetentionStrategy.java
            http://jenkins-ci.org/commit/jclouds-plugin/700644c1bd6d99953042d1a78791b180b1e816d8
            Log:
            Merge pull request #73 from kei-yamazaki/avoid-deadlock

            JENKINS-15820 Fix NPE

            Compare: https://github.com/jenkinsci/jclouds-plugin/compare/aba2ef847edb...700644c1bd6d

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Marat Mavlyutov Path: jclouds-plugin/src/main/java/jenkins/plugins/jclouds/compute/JCloudsRetentionStrategy.java http://jenkins-ci.org/commit/jclouds-plugin/700644c1bd6d99953042d1a78791b180b1e816d8 Log: Merge pull request #73 from kei-yamazaki/avoid-deadlock JENKINS-15820 Fix NPE Compare: https://github.com/jenkinsci/jclouds-plugin/compare/aba2ef847edb...700644c1bd6d
            Hide
            olivergondza Oliver Gondža added a comment -

            I have identified the same problem with JClouds plugin only. See attached JENKINS-15820.log

            Show
            olivergondza Oliver Gondža added a comment - I have identified the same problem with JClouds plugin only. See attached JENKINS-15820 .log
            Hide
            olivergondza Oliver Gondža added a comment -

            I have been running patched version for a month without problems. Can this be released?

            Show
            olivergondza Oliver Gondža added a comment - I have been running patched version for a month without problems. Can this be released?
            Hide
            felfert Fritz Elfert added a comment -

            Out of date

            Show
            felfert Fritz Elfert added a comment - Out of date

              People

              Assignee:
              abayer Andrew Bayer
              Reporter:
              onemanbucket onemanbucket
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: