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

Queue stops working when a NodeProperty or QueueTaskDispatcher throw some exception

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Jenkins master with at least two agents
    • 2.204

      When an implementation of NodeProperty or QueueTaskDispatcher throws an exception and Jenkins is using two or more agents, the queue stops moving the tasks because the maintain method ends unexpectedly.

       

          [JENKINS-59886] Queue stops working when a NodeProperty or QueueTaskDispatcher throw some exception

          Ramon Leon added a comment -

          I link to JENKINS-59844 because it is the issue that discovers this one. A NodeProperty implementer was calling the ProcessBuilder#_start method (JDK) with an empty command, therefore throwing an _IndexOutOfBoundExceptions and hanging the queue. Every job reviewed in the Queue#maintain method after this event is not managed because the method ends abruptly.

          Ramon Leon added a comment - I link to JENKINS-59844 because it is the issue that discovers this one. A NodeProperty implementer was calling the ProcessBuilder#_start method (JDK) with an empty command, therefore throwing an _IndexOutOfBoundExceptions and hanging the queue. Every job reviewed in the Queue#maintain method after this event is not managed because the method ends abruptly.

          Ramon Leon added a comment -

          Ramon Leon added a comment - PR:  https://github.com/jenkinsci/jenkins/pull/4311

          Daniel Beck added a comment -

          Was this fixed in 2.204 or is there more needed?

          Daniel Beck added a comment - Was this fixed in 2.204 or is there more needed?

          Ramon Leon added a comment -

          Right, it should be closed, my fault

          Ramon Leon added a comment - Right, it should be closed, my fault

            mramonleon Ramon Leon
            mramonleon Ramon Leon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: