Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid redundant connections in ClusterConnectionManager (#77196)
Today it's possible to open two connections to a node, and then we notice when registering the second connection and close it instead. Fixing #67873 will require us to keep tighter control over the identity and lifecycle of each connection, and opening redundant connections gets in the way of this. This commit adds a check for an existing connection _after_ marking the connection as pending, which guarantees that we don't open those redundant connections.
- Loading branch information