Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-608

MongoReplicaSetClient must raise error if no members of host list are reachable

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7
    • 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.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: