Skip to content
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

Open
nurzhan-saktaganov opened this issue Sep 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nurzhan-saktaganov
Copy link
Collaborator

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant