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

Quiet period is blocking other jobs in queue

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Platform: All, OS: All

      Description

      Starting from version 1.452, a job in queue waiting for the quiet period to pass is blocking all other jobs that have been queued after it.

      Example:

      1. Job A has quiet period set to 10 seconds
      2. Job B has quiet period set to 300 seconds
      3. Job C has quiet period set to 100 seconds
      4. Jobs get queued in A-B-C order.
      5. Job A starts executing after 10 seconds
      6. After 100 seconds, status of job C changes to "pending - Waiting for next available executor" even if free executors are available
      7. After 300 seconds both jobs B and C start executing

      This problem is hardly visible when short quiet periods are used but becomes problematic with longer quiet periods or plugins like Naginator that will increase the quiet period to hours if the builds fail enough.

      Version 1.451 is the last release where this problem isn't visible. From public releases, at least 1.452 and 1.454 are affected.

        Issue Links

          Activity

          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_ui-changes_branch #21
          [FIX JENKINS-12994] Quiet period is blocking other jobs in queue (Revision 394e9d6c0488fae6834d97a158a018abb31f3179)
          Update changelog for JENKINS-12994 (Revision 07b3f2cccb077df85617f2748f9b329528bc263b)

          Result = SUCCESS
          Vincent Latombe : 394e9d6c0488fae6834d97a158a018abb31f3179
          Files :

          • core/src/main/java/hudson/model/Queue.java

          Vincent Latombe : 07b3f2cccb077df85617f2748f9b329528bc263b
          Files :

          • changelog.html
          Show
          dogfood dogfood added a comment - Integrated in jenkins_ui-changes_branch #21 [FIX JENKINS-12994] Quiet period is blocking other jobs in queue (Revision 394e9d6c0488fae6834d97a158a018abb31f3179) Update changelog for JENKINS-12994 (Revision 07b3f2cccb077df85617f2748f9b329528bc263b) Result = SUCCESS Vincent Latombe : 394e9d6c0488fae6834d97a158a018abb31f3179 Files : core/src/main/java/hudson/model/Queue.java Vincent Latombe : 07b3f2cccb077df85617f2748f9b329528bc263b Files : changelog.html
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vincent Latombe
          Path:
          core/src/main/java/hudson/model/Queue.java
          http://jenkins-ci.org/commit/jenkins/210e50fc8547c99d66b033787371dae115f03b7e
          Log:
          [FIX JENKINS-12994] Quiet period is blocking other jobs in queue
          Queue#maintain() was returning too soon(cherry picked from commit 394e9d6c0488fae6834d97a158a018abb31f3179)

          Conflicts:

          core/src/main/java/hudson/model/Queue.java

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vincent Latombe Path: core/src/main/java/hudson/model/Queue.java http://jenkins-ci.org/commit/jenkins/210e50fc8547c99d66b033787371dae115f03b7e Log: [FIX JENKINS-12994] Quiet period is blocking other jobs in queue Queue#maintain() was returning too soon(cherry picked from commit 394e9d6c0488fae6834d97a158a018abb31f3179) Conflicts: core/src/main/java/hudson/model/Queue.java
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vincent Latombe
          Path:
          changelog.html
          http://jenkins-ci.org/commit/jenkins/a86887043605c6070c81894bf38e4c6084e1f229
          Log:
          Update changelog for JENKINS-12994(cherry picked from commit 07b3f2cccb077df85617f2748f9b329528bc263b)

          Conflicts:

          changelog.html

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vincent Latombe Path: changelog.html http://jenkins-ci.org/commit/jenkins/a86887043605c6070c81894bf38e4c6084e1f229 Log: Update changelog for JENKINS-12994 (cherry picked from commit 07b3f2cccb077df85617f2748f9b329528bc263b) Conflicts: changelog.html
          Hide
          bqe_antonio_rojas Antonio Rojas added a comment -

          Was it fixed and how to apply the fix if that is the case ? thanks for your help

          Show
          bqe_antonio_rojas Antonio Rojas added a comment - Was it fixed and how to apply the fix if that is the case ? thanks for your help
          Hide
          danielbeck Daniel Beck added a comment -

          Antonio Rojas: This was fixed years ago. It's really time to update your Jenkins if you're still affected.

          However if you think this happens in a recent Jenkins version, it's almost guaranteed an entirely different issue (e.g. JENKINS-27871) and has nothing to do with this one.

          Show
          danielbeck Daniel Beck added a comment - Antonio Rojas : This was fixed years ago. It's really time to update your Jenkins if you're still affected. However if you think this happens in a recent Jenkins version, it's almost guaranteed an entirely different issue (e.g. JENKINS-27871 ) and has nothing to do with this one.

            People

            • Assignee:
              Unassigned
              Reporter:
              teetoivo Teemu Toivola
            • Votes:
              32 Vote for this issue
              Watchers:
              25 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: