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

Raise ConnectionFailure instead of AutoReconnect if the initial server connection fails.

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.4
    • Affects Version/s: None
    • Component/s: None
    • None

      In connection.Connection.__init__ and replica_set_connection.ReplicaSetConnection.__init__ if our initial connection fails AutoReconnect is raised. AutoReconnect is misleading here since no (ReplicaSet)Connection is actually created.

      Catch AutoReconnect in __init__ and reraise ConnectionFailure instead.

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

              Created:
              Updated:
              Resolved: