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

Branch indexing gets stuck on lock

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • None

      When doing an organization scan, after bumping up plugin versions from 2.0.4 -> 2.2.2, branch indexing hangs. All branch indexing thread dumps have a similar stack track:

      "Executor #-1 for master : executing BranchIndexing[<repo name>]" Id=284434 Group=main WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@18926fc9
      	at sun.misc.Unsafe.park(Native Method)
      	-  waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@18926fc9
      	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder$FullReindexChildObserver.shouldUpdate(ComputedFolder.java:734)
      	at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observe(MultiBranchProject.java:1890)
      	at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:359)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:919)
      	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:355)
      	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:265)
      	at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:628)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:255)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:154)
      	at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:967)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:405)

      The only option seems cancelling them? We've let them sit over 2 days, and they never seem to finish.

            Unassigned Unassigned
            spencermalone Spencer Malone
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: