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

Deadlock between JobPropertyImpl and PromotionProcess

    Details

    • Similar Issues:

      Description

      A user of promoted-builds together with the CloudBees "template" feature, which integrates with promotions, encountered a deadlock blocking RunListener.fireCompleted from proceeding:

      "reconfigure children of <SOMEFOLDER>"
          at hudson.model.Job.onLoad(Job.java:205) // usually synchronizes on this; trying to lock PromotionProcess
          at hudson.model.AbstractProject.onLoad(AbstractProject.java:320)
          at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:122)
          at hudson.plugins.promoted_builds.JobPropertyImpl.setOwner(JobPropertyImpl.java:223) // synchronized; locked JobPropertyImpl
          at ...
      "reconfigure children of <SOMEFOLDER>/<SOMEJOB>"
          at hudson.plugins.promoted_builds.JobPropertyImpl.getOwner(JobPropertyImpl.java:328) // synchronized; trying to lock JobPropertyImpl
          at hudson.plugins.promoted_builds.JobPropertyImpl.getRootDir(JobPropertyImpl.java:349)
          at hudson.plugins.promoted_builds.JobPropertyImpl.getRootDirFor(JobPropertyImpl.java:386)
          at hudson.plugins.promoted_builds.JobPropertyImpl.getRootDirFor(JobPropertyImpl.java:382)
          at hudson.plugins.promoted_builds.JobPropertyImpl.getRootDirFor(JobPropertyImpl.java:54)
          at hudson.model.AbstractItem.getRootDir(AbstractItem.java:179)
          at hudson.model.Items.getConfigFile(Items.java:348)
          at hudson.model.AbstractItem.getConfigFile(AbstractItem.java:525)
          at hudson.model.AbstractItem.save(AbstractItem.java:521)
          at hudson.model.Job.save(Job.java:180)
          at hudson.model.AbstractProject.save(AbstractProject.java:305) // synchronized; locked PromotionProcess
          at ...
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                schristou Steven Christou
                Reporter:
                jglick Jesse Glick
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: