-
Bug
-
Resolution: Fixed
-
Major
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.
- 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/298e371321b3fa3744d923554624fb94135d32ee
Log:
Code documentation/annotation around
JENKINS-28446.Just to prevent similar misuses in the future.