ConnectionManager finally block cleans connections sequentially and can lead to delays on timeout ennforcement #3573
Labels
connection-manager
Issues / PRs related to connection-manager
io-sim-discovered
Issue discovered by IOSim
ConnectionManager
cleans connections and cancels their connection handler thread in a sequential fashion. The logic to do so is blocking and requires locks on the connection'sconnVar
. This can incur in delays while performing each cleanup sequentially making us fail timeout deadlines.To mitigate this one should perform each cleanup on a different thread and wait for all cleanups to be done, since no locks are shared, in order to minimize the wait time on cleanup.
The text was updated successfully, but these errors were encountered: