-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-69534] Make computer creation thread safe (#7087)
This change fixes a race condition that caused file descriptor leaks when cloud agents were created. The Jenkins.computers map is changed from a CopyOnWriteMap to a ConcurrentHashMap to simplify concurrent creation of computers. This allows us to make AbstractCIBase's createNewComputerForNode and updateNewComputer methods thread safe and simplify removeComputer.
- Loading branch information
Showing
2 changed files
with
26 additions
and
24 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
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