[JAVA-252] clean up the list of servers in replica based on list returned from isMaster Created: 07/Jan/11  Updated: 17/Mar/11  Resolved: 04/Feb/11

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.5

Type: Improvement Priority: Minor - P4
Reporter: Antoine Girbal Assignee: Antoine Girbal
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by JAVA-196 ReplicaSetStatus does not remove dead... Closed

 Description   

for driver, should we clean up the hosts in repl set list based on isMaster
right now we only add new nodes
but if a server gets removed, will stay in there
potentially it can create problems if client app is not restarted, but server gets repurposed, then driver will end up hitting servers that are not in same repl set.



 Comments   
Comment by auto [ 08/Feb/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: JAVA-252: prevent removal of all nodes if all nodes update fail
https://github.com/mongodb/mongo-java-driver/commit/a6e3ce42bfa185fafc61e70c783aaff15f3d6572

Comment by auto [ 05/Feb/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: JAVA-252: new nodes still need to be discovered in ensuremaster
https://github.com/mongodb/mongo-java-driver/commit/3e8f5a8a6f18c02a28bd84e105da4a55ce391dc6

Comment by auto [ 05/Feb/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: JAVA-252: NPE fix
https://github.com/mongodb/mongo-java-driver/commit/498a873180bb1687e831363c9cc2d5904c3c04bf

Comment by auto [ 04/Feb/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: JAVA-252: clean up the list of servers in replica based on list returned from isMaster
https://github.com/mongodb/mongo-java-driver/commit/d3019f4227a49dc2288c6001867546b6f43ef208

Generated at Thu Feb 08 08:51:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.