Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: core
-
Labels:
-
Similar Issues:
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
Integrated in
jenkins_main_trunk #4292
Code documentation/annotation around
JENKINS-28446. (Revision de5d83de09d2f0ec47292691da063a8eb43846f0)JENKINS-28446- Direct unit test for the issue (Revision 56fc3860954ea4e6d408dc617c1557f9cb9ec870)[FIXED JENKINS-28446] - Calculate only tasks without assigned labels (Revision ece651d4d0acc2a12bcc3c53780d67379a801e28)
JENKINS-28446- Introduce new API method in Queue to optimize the performance of UnlabeledLoadStatistics (Revision 84d80f57f2a31af44d733477efeb89db3f896021)Result = UNSTABLE
ogondza : de5d83de09d2f0ec47292691da063a8eb43846f0
Files :
ogondza : 56fc3860954ea4e6d408dc617c1557f9cb9ec870
Files :
ogondza : ece651d4d0acc2a12bcc3c53780d67379a801e28
Files :
ogondza : 84d80f57f2a31af44d733477efeb89db3f896021
Files :