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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial - P5
    • Resolution: Fixed
    • None
    • 2.4
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: