[JAVA-409] when creating Mongo to single server, its address appears twice (ipv4/ipv6) and it gets exploded into a replica set Created: 08/Aug/11  Updated: 10/Aug/11  Resolved: 08/Aug/11

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

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


 Description   

On Linux, InetAddress.getAllByName() returns 2 addresses for same host, one for ipv4 and one for ipv6.
Then in DBTCPConnector, it considers ServerAddress is "paired" and explodes into replica set.
So it's not possible to do a direct server connection.



 Comments   
Comment by Antoine Girbal [ 08/Aug/11 ]

pulled the "paired" address feature, confirmed that it was legacy that is no longer supported

Comment by auto [ 08/Aug/11 ]

Author:

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

Message: JAVA-409: when creating Mongo to single server, its address appears twice (ipv4/ipv6) and it gets exploded into a replica set
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/372211eec0d143c0a4921c7b867749903be44b99

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