[JAVA-224] Java driver doesn't automatically discover replica set passive nodes Created: 01/Dec/10  Updated: 17/Mar/11  Resolved: 08/Feb/11

Status: Closed
Project: Java Driver
Component/s: Cluster Management
Affects Version/s: 2.3
Fix Version/s: 2.5

Type: Bug Priority: Major - P3
Reporter: Daniel Rinehart Assignee: Antoine Girbal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When creating a Mongo connection using "public Mongo( List<ServerAddress> replicaSetSeeds , MongoOptions options )" passive replica set members are not discovered and being added to the list automatically. It looks like ReplicaSetStatus$Node's update() method only looks at the "hosts" portion of the response, ignoring passives.



 Comments   
Comment by auto [ 08/Feb/11 ]

Author:

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

Message: JAVA-224: Java driver doesn't automatically discover replica set passive nodes
https://github.com/mongodb/mongo-java-driver/commit/e62637fd20cef2cfe004b394bd1086d1570769be

Comment by Antoine Girbal [ 08/Feb/11 ]

fixed and tested.
List of hosts will now be populated from both "hosts" and "passives".

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