Skip to content

ReplicaSetStatus: added feature to remove nodes dynamically #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
Closed

ReplicaSetStatus: added feature to remove nodes dynamically #9

wants to merge 12 commits into from

Conversation

Chr1st0ph
Copy link

Hello,

I added the support for removing nodes dynamically; therefore, I changed the Updater-Thread to only take hosts from primary node into account; if the admin of the database removes nodes from the replica set configuration, these nodes will be removed.

I also removed the internal random-mechanism in method "getASecondary", because, for getting the node with the best ping, all nodes are iterated anyway.

Please let me know if it was helpful for you.

Greets, Christoph

Chr1st0ph added 12 commits October 18, 2010 19:42
…opyOnWriteArrayList ( in order to support removal of nodes dynamically; admins might change the replica set config )

+ equals, hashCode for class Node
+ adopted method close: set _close to true
- Random ( should not be necessary since we iterate all nodes anyway )
NathanQingyangXu added a commit that referenced this pull request Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants