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

Job hangs if one of multiple triggered builds was aborted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      I have two cases with job hanging:
      1) Parent job triggers multiple different jobs and waits for their completion. I abort some triggered job while it stays in queue. After that parent job never finished, waiting for completion.
      2) Parent job triggers multiple instances (via label factory) of one job on different slaves and waits for completion. I abort one of job while it executes on slave. Parent job hangs forever saying "Waiting for completion".

      I believe it worked correctly (in both cases parent job has failed) in some previous version.
      I've recently updated Jenkins from 1.48 to 1.532
      As well as Parametrized Trigger Plugin from 2.16 to 2.22
      And NodeLabel Parameter Plugin from 1.2.1 to 1.4

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: ikedam
            Path:
            test/src/test/java/hudson/model/QueueTest.java
            http://jenkins-ci.org/commit/jenkins/35dfc75c682e1c7dbc1308426e1d75a0f18a2ab9
            Log:
            JENKINS-21932 Added tests to reproduce JENKINS-21932, Future#get does not abort even when a task in the queue is canceled.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: test/src/test/java/hudson/model/QueueTest.java http://jenkins-ci.org/commit/jenkins/35dfc75c682e1c7dbc1308426e1d75a0f18a2ab9 Log: JENKINS-21932 Added tests to reproduce JENKINS-21932 , Future#get does not abort even when a task in the queue is canceled.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: ikedam
            Path:
            test/src/test/java/hudson/model/QueueTest.java
            http://jenkins-ci.org/commit/jenkins/5c3672270bcc97d5d05541f284c35b44067693ea
            Log:
            JENKINS-21932 Make the slave used in the test offline explicitly.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: test/src/test/java/hudson/model/QueueTest.java http://jenkins-ci.org/commit/jenkins/5c3672270bcc97d5d05541f284c35b44067693ea Log: JENKINS-21932 Make the slave used in the test offline explicitly.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: ikedam
            Path:
            core/src/main/java/hudson/model/Queue.java
            http://jenkins-ci.org/commit/jenkins/0c3d67097a3394fee7f0eb895c4350ea96887a02
            Log:
            [FIXED JENKINS-21932] Call Item#cancel when a task in a queue is cancelled.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: core/src/main/java/hudson/model/Queue.java http://jenkins-ci.org/commit/jenkins/0c3d67097a3394fee7f0eb895c4350ea96887a02 Log: [FIXED JENKINS-21932] Call Item#cancel when a task in a queue is cancelled.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            changelog.html
            core/src/main/java/hudson/model/Queue.java
            test/src/test/java/hudson/model/QueueTest.java
            http://jenkins-ci.org/commit/jenkins/fce4fed4e8785ebf2618e5532d1416488bb9fa6d
            Log:
            JENKINS-21932 Merge pull request #1160

            Compare: https://github.com/jenkinsci/jenkins/compare/eb0bfa5ece8e...fce4fed4e878

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/model/Queue.java test/src/test/java/hudson/model/QueueTest.java http://jenkins-ci.org/commit/jenkins/fce4fed4e8785ebf2618e5532d1416488bb9fa6d Log: JENKINS-21932 Merge pull request #1160 Compare: https://github.com/jenkinsci/jenkins/compare/eb0bfa5ece8e...fce4fed4e878
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #3303
            JENKINS-21932 Added tests to reproduce JENKINS-21932, Future#get does not abort even when a task in the queue is canceled. (Revision 35dfc75c682e1c7dbc1308426e1d75a0f18a2ab9)
            JENKINS-21932 Make the slave used in the test offline explicitly. (Revision 5c3672270bcc97d5d05541f284c35b44067693ea)
            [FIXED JENKINS-21932] Call Item#cancel when a task in a queue is cancelled. (Revision 0c3d67097a3394fee7f0eb895c4350ea96887a02)

            Result = SUCCESS
            devld : 35dfc75c682e1c7dbc1308426e1d75a0f18a2ab9
            Files :

            • test/src/test/java/hudson/model/QueueTest.java

            devld : 5c3672270bcc97d5d05541f284c35b44067693ea
            Files :

            • test/src/test/java/hudson/model/QueueTest.java

            devld : 0c3d67097a3394fee7f0eb895c4350ea96887a02
            Files :

            • core/src/main/java/hudson/model/Queue.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3303 JENKINS-21932 Added tests to reproduce JENKINS-21932 , Future#get does not abort even when a task in the queue is canceled. (Revision 35dfc75c682e1c7dbc1308426e1d75a0f18a2ab9) JENKINS-21932 Make the slave used in the test offline explicitly. (Revision 5c3672270bcc97d5d05541f284c35b44067693ea) [FIXED JENKINS-21932] Call Item#cancel when a task in a queue is cancelled. (Revision 0c3d67097a3394fee7f0eb895c4350ea96887a02) Result = SUCCESS devld : 35dfc75c682e1c7dbc1308426e1d75a0f18a2ab9 Files : test/src/test/java/hudson/model/QueueTest.java devld : 5c3672270bcc97d5d05541f284c35b44067693ea Files : test/src/test/java/hudson/model/QueueTest.java devld : 0c3d67097a3394fee7f0eb895c4350ea96887a02 Files : core/src/main/java/hudson/model/Queue.java

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              cerber Sergey Irisov
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: