Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[FIXED JENKINS-21044] - Throttling blocks the Jenkins queue
Seems the issue was in improper usage of WeakHashMap (see analysis from @Centic). I've managed to reproduce the behavior in the following case: * There is a big number of jobs/configurations with throttling * The builds queue is not empty // Seems that ThrottleQueueTaskDispatcher tries to access the data before the complete loading of the plugin's configuration. This fix provides an explicit locking of any load operations + manual cleanup of erroneous cache data, which goes to persistence in 1.8.1 Resolves https://issues.jenkins-ci.org/browse/JENKINS-21044 Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
- Loading branch information
1 parent
dc16282
commit 9b7562d
Showing
1 changed file
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters