-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins 1.618
Workflow 1.8
While experimenting with Workflow, I called the equivalent of
parallel [:]
This appears to have never terminated.
Specifically, "Execute sub-workflows in parallel : Start" has been running for 14 hours now, with no child steps.
- depends on
-
JENKINS-25550 Hard kill
-
- Resolved
-
- is duplicated by
-
JENKINS-27969 parallel([:]) hangs forever
-
- Resolved
-
- links to
[JENKINS-29413] Parallel with an empty map will run forever
Description |
Original:
While experimenting with Workflow, I called the equivalent of {code:groovy} parallel [:] {code} This appears to have never terminated. |
New:
While experimenting with Workflow, I called the equivalent of {code:groovy} parallel [:] {code} This appears to have never terminated. Specifically, "Execute sub-workflows in parallel : Start" has been running for 14 hours now, with no child steps. |
Link |
New:
This issue depends on |
Link |
New:
This issue is duplicated by |
Recommend increasing the priority, as this bug can render your Jenkins installation unusable and unrecoverable.
I ran the following workflow:
def nothing = [:]
node {
parallel nothing
}
and now there is a "build" consuming one executor on a slave. This build cannot be killed and survives Jenkins restarts. Even deleting the slave entirely cannot recover the situation. Nothing short of nuking JENKINS_HOME from orbit seems to get rid of it.
Clearly this workflow is silly, but it would be pretty easy to do the equivalent accidentally if your Groovy script dynamically built up a set of blocks to run (like the "splitTests" demo in the documentation does). And the consequences currently are pretty dire.