[JAVA-2387] Mongo.getAllAddress Includes Auto-Discovered Nodes Created: 16/Nov/16  Updated: 18/Nov/16  Resolved: 18/Nov/16

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: 3.0.0
Fix Version/s: 3.4.0

Type: Bug Priority: Major - P3
Reporter: Joshua Matthews (Inactive) Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

In previous versions of the java driver (last seen in 2.14) getAllAddress would return a list of server addresses from when the client was created. In the current version it tries to perform auto discovery before returning the list. According to the javadoc and TODO on that method, this should be changed to the old behavior of only returning the nodes given to construct the client, without including auto-discovered nodes.



 Comments   
Comment by Githook User [ 18/Nov/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2387: Mongo.getAddressList returns the seed list, as per the documentation, instead of the list of discovered servers
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/8a3cbc9d112ffa34ee84abad47531bcfdbf7becc

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