Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
Description
The Jenkins#unlabeledLoad LoadStatistics incorrectly counts labeled jobs from computeQueueLength().
Steps to reproduce:
- Create a job with a label 'foo'
- Run the job and ensure it is the only job in the queue
- Evaluating Jenkins.getInstance().unlabeledLoad.computeQueueLength() will return 1
This causes the Jenkins.unlabeledLoadProvisioner to provision slaves with null labels even though they will not be able to run the labeled jobs.
Attachments
Issue Links
- links to
Code changed in jenkins
User: Oleg Nenashev
Path:
core/src/main/java/hudson/model/Queue.java
core/src/main/java/hudson/model/labels/LabelAssignmentAction.java
http://jenkins-ci.org/commit/jenkins/de5d83de09d2f0ec47292691da063a8eb43846f0
Log:
Code documentation/annotation around
JENKINS-28446.Just to prevent similar misuses in the future.
(cherry picked from commit 298e371321b3fa3744d923554624fb94135d32ee)