• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • Jenkins 1.509.1 running on Ubuntu 12.04 with JDK 1.7
      Jenkins 1.501 on Debian 6

      Tried to remove ~20 builds in parallel with 30 days of build logs (a lot of files) and this resulted in a deadlock and we needed to restart the server.
      JavaMelody listed the doDelete threads as deadlocked and showed
      1 x hudson.model.Job.delete(Job.java:587)
      17 x hudson.model.Project.getPublishersList(Project.java:114)
      as a result of the deadlock we can't edit builds anymore

      /configSubmit : http-bio-8080-exec-3552	yes	5	BLOCKED	hudson.model.Project.getPublishersList(Project.java:114)
      
      /doDelete : http-bio-8080-exec-3503	yes	5	BLOCKED	hudson.model.Project.getPublishersList(Project.java:114)
      
      /doDelete : http-bio-8080-exec-3543	yes	5	BLOCKED	hudson.model.Job.delete(Job.java:587)
      

      Looking in project.java it looks like a deprecated method is used

      /**
       * @deprecated as of 1.463 We will be soon removing the restriction that
       *             only one instance of publisher is allowed per type. Use
       *             {@link #getPublishersList()} instead.
       */
      public Map<Descriptor<Publisher>,Publisher> getPublishers() {
      return publishers.toMap();
      }
      

          [JENKINS-18169] Deadlock when running multiple delete

          Marcus Jacobsson created issue -
          Emil Sit made changes -
          Attachment New: jenkins-18169-thread-dump-redacted.txt [ 23743 ]
          Emil Sit made changes -
          Component/s New: parameterized-trigger [ 15592 ]
          Emil Sit made changes -
          Attachment New: jenkins-18169-jstack-deadlock.txt [ 23744 ]
          Marcus Jacobsson made changes -
          Attachment New: build2.txt [ 23754 ]
          Marcus Jacobsson made changes -
          Attachment New: build1.txt [ 23755 ]
          Uwe Stuehler made changes -
          Environment Original: Jenkins 1.509.1 running on Ubuntu 12.04 with JDK 1.7 New: Jenkins 1.509.1 running on Ubuntu 12.04 with JDK 1.7
          Jenkins 1.501 on Debian 6
          Priority Original: Major [ 3 ] New: Critical [ 2 ]
          Uwe Stuehler made changes -
          Link New: This issue is duplicated by JENKINS-18199 [ JENKINS-18199 ]
          Oleg Nenashev made changes -
          Link New: This issue duplicates JENKINS-18589 [ JENKINS-18589 ]
          Oleg Nenashev made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Steven Christou made changes -
          Assignee New: Steven Christou [ schristou ]

            Unassigned Unassigned
            hanabishi Marcus Jacobsson
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: