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

Deadlock during delete of upstream/downstream projects

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • core
    • None

      We had a number of linked projects which could be removed.

      I opened multiple projects in multiple tabpages and deleted them.
      I did not get reaction of the server (timeout).

      Later on all kind of changes to jobs failed.

      The cron thread was blocked as well, so no new jobs were started.

      I was able to create a thread dump.

      Most methods hang on hudson.model.Project.getPublishersList() this is synchronized method.

      The deadlock message:

      "Handling POST /jenkins/job/cws-is-junit-l/doDelete : RequestHandlerThread20":
      waiting to lock Monitor@0x000000000c447fa8 (Object@0x0000000747c7aaf0, a hudson/model/FreeStyleProject),
      which is held by "Handling POST /jenkins/job/prepare-for-is-regressions/doDelete : RequestHandlerThread15"
      "Handling POST /jenkins/job/prepare-for-is-regressions/doDelete : RequestHandlerThread15":
      waiting to lock Monitor@0x000000000b3e3c68 (Object@0x0000000747ec1378, a hudson/model/FreeStyleProject),
      which is held by "Handling POST /jenkins/job/cws-is-junit-l/doDelete : RequestHandlerThread20"

      The 2 jobs are up and downstream jobs of eachother.

          [JENKINS-18199] Deadlock during delete of upstream/downstream projects

          Uwe Stuehler added a comment -

          As hanabishi mentioned in JENKINS-18169, this issue looks quite like a duplicate of JENKINS-18169, where there is a bit more information too.

          Uwe Stuehler added a comment - As hanabishi mentioned in JENKINS-18169 , this issue looks quite like a duplicate of JENKINS-18169 , where there is a bit more information too.

          Daniel Beck added a comment -

          Needs to be reproduced in a version of Jenkins that includes the JENKINS-18589 fix (i.e. 1.522+, 1.554+ would be best at this time). Until then, considering this issue obsolete.

          Please file a new issue if it happens again and provide new /threadDump output etc.

          Daniel Beck added a comment - Needs to be reproduced in a version of Jenkins that includes the JENKINS-18589 fix (i.e. 1.522+, 1.554+ would be best at this time). Until then, considering this issue obsolete. Please file a new issue if it happens again and provide new /threadDump output etc.

            Unassigned Unassigned
            cbos Cees Bos
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: