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

Parent builds sometimes hang on successful child builds of same type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Postponed
    • Component/s: multijob-plugin
    • Labels:
      None
    • Environment:
      jenkins 1.593
      multijob plugin 1.16
    • Similar Issues:

      Description

      With a job configuration like:

      parent_job:
      child_job
      child_job

      occasionally we'll get output that looks like this:

      Starting build job child_job.
      Starting build job child_job.
      Finished Build : #123 - Job : child_job with status : SUCCESS
      <this hangs forever, so we abort the parent_job>
      Aborting all subjobs.
      Finished Build : #124 - Job : child_job with status : ABORTED

      However, job #124 will always have finished successfully. We see this relatively rarely (~5% of parent_job builds?). My guess is that there's a race condition causing this, since we usually see this during times of high load (ie many child_job instances are being started).

        Attachments

          Issue Links

            Activity

            Hide
            yorammi Yoram Michaeli added a comment -

            Closing issue as part of tikal-multijob-plugin issues cleanup.
            If still relevant, please open a matching issue in https://github.com/jenkinsci/tikal-multijob-plugin/issues (you can refer to this issue in its description)

            Show
            yorammi Yoram Michaeli added a comment - Closing issue as part of tikal-multijob-plugin issues cleanup. If still relevant, please open a matching issue in https://github.com/jenkinsci/tikal-multijob-plugin/issues (you can refer to this issue in its description)
            Hide
            ataylor Alex Taylor added a comment -

            So I would think this could happen even with a slight disconnect of the slave per Ivan's last comment.

            Is there any more information that can be provided here?

            Show
            ataylor Alex Taylor added a comment - So I would think this could happen even with a slight disconnect of the slave per Ivan's last comment. Is there any more information that can be provided here?
            Hide
            ifernandezcalvo Ivan Fernandez Calvo added a comment -

            How to reproduce it:

            • Configure a FreeStyle Project - freeStyle01
            • Configure a Maven Project - maven01
            • Configure a Multijob Project with 30 subjobs (enough to have time to stop slave agent) - Multijob01
            • Configure one slave agent with 1 executor - slave01
            • Run Multijob01
            • Go to Manage Jenkins/Manage Nodes and put slave01 offline or kill "java -jar slave.jar" on slave agent
            • Multijob01 hang waiting for finish task
            Show
            ifernandezcalvo Ivan Fernandez Calvo added a comment - How to reproduce it: Configure a FreeStyle Project - freeStyle01 Configure a Maven Project - maven01 Configure a Multijob Project with 30 subjobs (enough to have time to stop slave agent) - Multijob01 Configure one slave agent with 1 executor - slave01 Run Multijob01 Go to Manage Jenkins/Manage Nodes and put slave01 offline or kill "java -jar slave.jar" on slave agent Multijob01 hang waiting for finish task
            Hide
            simonmweber Simon Weber added a comment -

            Tony Bridges I don't think this was solved for us until I upgraded Jenkins. I'm not sure what combination of the jenkins, trigger plugin, and multijob plugin upgrades is necessary to solve it, but the environment I described earlier has been rock solid for months now.

            Show
            simonmweber Simon Weber added a comment - Tony Bridges I don't think this was solved for us until I upgraded Jenkins. I'm not sure what combination of the jenkins, trigger plugin, and multijob plugin upgrades is necessary to solve it, but the environment I described earlier has been rock solid for months now.
            Hide
            tbridges Tony Bridges added a comment -

            Does the pull request conclusively correct the issue ? If so, maybe we can get it rolled into a new plugin release ?

            Show
            tbridges Tony Bridges added a comment - Does the pull request conclusively correct the issue ? If so, maybe we can get it rolled into a new plugin release ?

              People

              • Assignee:
                chenc Chen Cohen
                Reporter:
                simonmweber Simon Weber
              • Votes:
                3 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: