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: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Jenkins master with at least two agents
    • Similar Issues:
    • Released As:
      2.204

      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
            Hide
            danielbeck Daniel Beck added a comment -

            Was this fixed in 2.204 or is there more needed?

            Show
            danielbeck Daniel Beck added a comment - Was this fixed in 2.204 or is there more needed?
            Hide
            mramonleon Ramon Leon added a comment -

            Right, it should be closed, my fault

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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: