Skip to content
Unverified Commit 165e68c6 authored by Jonas Lind's avatar Jonas Lind Committed by Alexander Brandes
Browse files

[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.

(cherry picked from commit 5414938c)
parent 34eae207
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment