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

Triggering many (100+) concurrent builds causes some builds to not get parameters set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None

      The problem is that certain job runs are not passed the parameters they should be getting and they fail.

      This seems to happens more when 100 or more job runs are triggered concurrently by a trigger. Sometimes with as little as 50.

       

      The failed jobs seem to get an executor on a worker, and start running but fail because the parameters they should have received aren't there. So the processing that expects valid parameters values fails.

       

      To test this setup I setup 2 Pipeline groovy jobs. The content of both jobs is attached.

       Parent job

      • runs on a worker provisioned by the GCE plugin
      • is triggered with some parameters, including 1 that tells it how many instances of the child job to trigger

      Child job

      • is triggered multiple times by the parent job and passed some parameters
      • each run of this job requires its own worker 
      • does something reasonably simple
           - verifies the worker it is running on is ready by checking for a file (this is just verifying that any necessary build caches like gradle, npm, pip, are on the worker)
           - using the parameters passed in by the parent job, it tries to download a file from GCS
           - then it sleeps for 15 mins, just to hold the worker
      • When this job fails, it is because the parameters it should have received are missing and it can't do the download of an artifact from GCS

       

      I have attached screen shots of what the parameters page looks like on a successful run as well as an unsuccessful run.

        1. child-job-example.groovy
          2 kB
          arash m
        2. parent-job-example.groovy
          2 kB
          arash m
        3. successful-job-run.png
          328 kB
          arash m
        4. unsuccessful-job-run.png
          263 kB
          arash m

            zombiemoose Rachel Yen
            arash arash m
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: