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

Queue stops working when a NodeProperty or QueueTaskDispatcher throw some exception

    Details

    • Type: Improvement
    • Status: In Review (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins master with at least two agents
    • Similar Issues:

      Description

      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.

       

        Attachments

          Issue Links

            Activity

            Hide
            mramonleon 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.

            Show
            mramonleon 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.
            Show
            mramonleon Ramon Leon added a comment - PR:  https://github.com/jenkinsci/jenkins/pull/4311

              People

              • Assignee:
                mramonleon Ramon Leon
                Reporter:
                mramonleon Ramon Leon
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: