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

Queue$BlockedItem.getCauseOfBlockage waiting for lock on Queue

    XMLWordPrintable

Details

    Description

      "Handling POST /job/.../ajaxBuildQueue : ...
         java.lang.Thread.State: BLOCKED (on object monitor)
      	at hudson.model.ResourceController.getBlockingActivity(ResourceController.java:129)
      	- waiting to lock <0x00000000c11cf910> (a hudson.model.Queue)
      	at hudson.model.Queue$BlockedItem.getCauseOfBlockage(Queue.java:1490)
      	at hudson.model.Queue$Item.getWhy(Queue.java:1309)
      	at sun.reflect.GeneratedMethodAccessor681.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      

      The cause of blockage is just informational; should not wait for the Queue lock just for this.

      Attachments

        Issue Links

          Activity

            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2280
            [FIXED JENKINS-16833] Use a CopyOnWriteArraySet for inProgress to avoid blocking UI. (Revision 2efa70955299ff7bb5d5bc9a5d12c218f922ab03)

            Result = SUCCESS
            kohsuke : 2efa70955299ff7bb5d5bc9a5d12c218f922ab03
            Files :

            • changelog.html
            • core/src/main/java/hudson/model/ResourceController.java
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2280 [FIXED JENKINS-16833] Use a CopyOnWriteArraySet for inProgress to avoid blocking UI. (Revision 2efa70955299ff7bb5d5bc9a5d12c218f922ab03) Result = SUCCESS kohsuke : 2efa70955299ff7bb5d5bc9a5d12c218f922ab03 Files : changelog.html core/src/main/java/hudson/model/ResourceController.java

            Code changed in jenkins
            User: Jesse Glick
            Path:
            changelog.html
            core/src/main/java/hudson/model/ResourceController.java
            http://jenkins-ci.org/commit/jenkins/2efa70955299ff7bb5d5bc9a5d12c218f922ab03
            Log:
            [FIXED JENKINS-16833] Use a CopyOnWriteArraySet for inProgress to avoid blocking UI.


            You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
            To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
            For more options, visit https://groups.google.com/groups/opt_out.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/model/ResourceController.java http://jenkins-ci.org/commit/jenkins/2efa70955299ff7bb5d5bc9a5d12c218f922ab03 Log: [FIXED JENKINS-16833] Use a CopyOnWriteArraySet for inProgress to avoid blocking UI. – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .
            jglick Jesse Glick added a comment -

            It is possible that a fix of JENKINS-16831 would resolve this, since it appeared to be the call to Queue.getItems which was holding the lock for too long. Nonetheless it would be better to avoid even trying to acquire this monitor from an HTTP thread, so: pull #712

            jglick Jesse Glick added a comment - It is possible that a fix of JENKINS-16831 would resolve this, since it appeared to be the call to Queue.getItems which was holding the lock for too long. Nonetheless it would be better to avoid even trying to acquire this monitor from an HTTP thread, so: pull #712

            People

              jglick Jesse Glick
              jglick Jesse Glick
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: