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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.6.3
    • 2.7
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: