-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.6.3
-
Component/s: None
-
None
If a replica set config contains hostnames that are not publicly addressable, e.g. "internal1, internal2, ...", and MongoReplicaSetClient connects to one using its public hostname, e.g. "example.com", it should raise a ConnectionFailure even though its initial connection to example.com succeeds.
However, in PyMongo 2.6.3 MongoReplicaSetClient.__init__ doesn't raise. It returns a client connected to no members, which is useless.