jenkinsci / jenkinsci/durable-task-plugin
[JENKINS-28759] Batch steps on slaves randomly hang when complete
- 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
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
Assessment
This issue has not been assessed yet.