-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 7.10, 8.10
-
Component/s: Runtime
-
Release Notes Summary:Reduce contention on connection acquisition
-
Tags:
-
Backlog priority:1,000
-
Sprint:nxcore 9.3.7
-
Story Points:1
Currently the code to get a connection from a datasource passes through NuxeoConnectionManager$ActiveMonitor.handleObtained which is a synchronized method. The synchronized block is here to protect the concurrent update of the ttls map.
It seems that the synchronized block could be removed and replaced by the use of a ConcurrentMap for the ttls variable to reduce the possible contention when acquiring a connection.