Skip to content
Unverified Commit 5414938c authored by Jonas Lind's avatar Jonas Lind Committed by GitHub
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.
parent 98e499da
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