jenkinsci / jenkinsci/durable-task-plugin

[JENKINS-28759] Batch steps on slaves randomly hang when complete

Open
#335 28 comments 0 reactions 0 assignees View on GitHub
component:durable-task-plugin imported-jira-issue pipeline priority:critical resolution:unresolved
Dominant language
Java
Stars
30
Forks
101
PR merge metrics
No merged PRs in 30d

Description

Batch steps that succeed are hanging, more frequently since the upgrade to Jenkins 1.6.16 + WF 1.7; I think this is recent, I do not recall encountering such issues with Jenkins 1.6.09 + WF 1.5. This is highly problematic for workflow scripts that rely on large numbers of batch steps. Note, the slave nodes in question may be considered "high-latency" with response times occasionally in seconds.

Reproduced 2 out of 4 times using the following test idiom, increasing the below loop to 1000 will probably make it a 100% reproduction, parallelizing anecdotally seems to increase reproduction:

node('slave') {

for( int i = 0; i < 100; ++i ) {
echo "i=${i}"
bat **
}
}

---
Originally reported by sumdumgai, imported from: Batch steps on slaves randomly hang when complete


  • status: Open
  • priority: Critical
  • component(s): durable-task-plugin
  • label(s): batch, pipeline, triaged-2018-11, windows
  • resolution: Unresolved
  • votes: 19
  • watchers: 29
  • imported: 2025-12-09

Raw content of original issue

Batch steps that succeed are hanging, more frequently since the upgrade to Jenkins 1.6.16 + WF 1.7; I think this is recent, I do not recall encountering such issues with Jenkins 1.6.09 + WF 1.5. This is highly problematic for workflow scripts that rely on large numbers of batch steps. Note, the slave nodes in question may be considered "high-latency" with response times occasionally in seconds.

Reproduced 2 out of 4 times using the following test idiom, increasing the below loop to 1000 will probably make it a 100% reproduction, parallelizing anecdotally seems to increase reproduction:


node('slave') {

for( int i = 0; i < 100; ++i ) {
echo "i=${i}"
bat *<some batch step that takes variable time to run, eg scm or make>*
}
}

environment

```
Jenkins 1.6.16

Workflow 1.8

Windows 8.1 Slaves
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.