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

Batch steps on slaves randomly hang when complete

      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>*
        }
      }
      

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

          A C created issue -
          A C made changes -
          Environment Original: Jenkins 1.6.16
          Workflow 1.7
          Windows 8.1 Slaves
          New: Jenkins 1.6.16
          Workflow 1.8
          Windows 8.1 Slaves
          Jesse Glick made changes -
          Description Original: 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>*
            }
          }
          New: 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:

          {code}
          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>*
            }
          }
          {code}
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-28604 [ JENKINS-28604 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-27419 [ JENKINS-27419 ]
          Jesse Glick made changes -
          Labels Original: batch New: batch windows
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-31769 [ JENKINS-31769 ]
          Martin S. made changes -
          Link New: This issue is duplicated by JENKINS-33164 [ JENKINS-33164 ]
          Jesse Glick made changes -
          Epic Link New: JENKINS-35399 [ 171192 ]
          Jesse Glick made changes -
          Component/s New: durable-task-plugin [ 18622 ]
          Component/s Original: workflow-plugin [ 18820 ]
          Labels Original: batch windows New: batch windows workflow
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 163615 ] New: JNJira + In-Review [ 181312 ]

            Unassigned Unassigned
            sumdumgai A C
            Votes:
            19 Vote for this issue
            Watchers:
            29 Start watching this issue

              Created:
              Updated: