Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
Because the queue processes all tasks at once, the ThrottleComputationQueueTaskDispatcher's current implementation of checking what is currently executing misses out on what is currently being scheduled and so as a result you can get more than the limit of 5 processing from scheduled to executing at the same time and then the CPU resources are starved serving potentially 100's of concurrent indexing jobs.
Code changed in jenkins
User: Stephen Connolly
Path:
src/main/java/com/cloudbees/hudson/plugins/folder/computed/ThrottleComputationQueueTaskDispatcher.java
http://jenkins-ci.org/commit/cloudbees-folder-plugin/b8b07c1ce3d5068b5273fca26d73ec181ed792c9
Log:
[FIXED JENKINS-47438] Keep track of recent approvals to prevent race conditions