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

Nodes can be removed as idle before the assigned tasks have started

      Quite a number of different manifestations of this observed by a number of our customers using different cloud providers. In common is the use of a "single-shot" style retention strategy, though the root cause is observable with great care when using any retention strategy other than Always.

      The basic issue is that you cannot determine if a node is idle unless you hold the Queue lock as that is the only way to ensure that the Queue is not in the process of assigning work to the node you are removing.

      Symptoms include:

      • Build logs that claim the job was executed on "master" even though the job is tied to a specific label that master does not have. The build log will have been "unable to be determined"
      • Build logs where the node is gone just as soon as the job starts
        2015-03-05 13:27:55.101 Started by upstream project "____" build number ___ 
        2015-03-05 13:27:55.102 originally caused by: 
        2015-03-05 13:27:55.103 Started by user ____ 
        2015-03-05 13:27:55.437 FATAL: no longer a configured node for ____ 
        2015-03-05 13:27:55.440 java.lang.IllegalStateException: no longer a configured node for ____ 
        2015-03-05 13:27:55.440 at hudson.model.AbstractBuild$AbstractBuildExecution.getCurrentNode(AbstractBuild.java:452) 
        2015-03-05 13:27:55.440 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:484) 
        2015-03-05 13:27:55.441 at hudson.model.Run.execute(Run.java:1745) 
        2015-03-05 13:27:55.441 at hudson.model.Build.run(Build.java:113) 
        2015-03-05 13:27:55.441 at hudson.model.ResourceController.execute(ResourceController.java:89) 
        2015-03-05 13:27:55.441 at hudson.model.Executor.run(Executor.java:240)
        

          [JENKINS-27565] Nodes can be removed as idle before the assigned tasks have started

          Stephen Connolly created issue -
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "PR 1596 (Web Link)" [ 12179 ]
          Jesse Glick made changes -
          Labels New: queue slave threads
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-20046 [ JENKINS-20046 ]
          Per Arnold Blaasmo made changes -
          Link New: This issue is blocking JENKINS-27476 [ JENKINS-27476 ]
          Stephen Connolly made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Jesse Glick made changes -
          Link New: This issue depends on JENKINS-27700 [ JENKINS-27700 ]
          Oleg Nenashev made changes -
          Link New: This issue is related to JENKINS-27708 [ JENKINS-27708 ]
          Tomasz Szuba made changes -
          Link New: This issue is related to JENKINS-28690 [ JENKINS-28690 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-20967 [ JENKINS-20967 ]

            stephenconnolly Stephen Connolly
            stephenconnolly Stephen Connolly
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: