This repository has been archived by the owner on Dec 23, 2024. It is now read-only.
Delete a replicaset from bucket map when this replicaset is removed from the cluster #59
Labels
bug
Something isn't working
In
RemoveReplicaset
we remove replicaset from idToReplicaset map and close its connection pool.But in routeMap we may still have pointers to this replicaset. This looks like a buggy behavior.
The straightforward solution with replacing to nil all elements of routeMap, that hold this pointer, doesn't work.
Because there might be a discovering goroutine that holds an old value of idToReplicaset that is still in progress.
Therefore, we need a bit more smart solution.
The text was updated successfully, but these errors were encountered: