Dealing w/ReplicaSet AutoReconnection

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.2
    • Component/s: None
    • None
    • Environment:
      Ubuntu 12.04 LTS on AWS
      Mongo 2.0.6
      PyMongo 2.2
      3 Member Replica Set - Primary, Secondary, Arbiter
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Our application does not gracefully autoreconnect when a replica set member is added or removed (I'm not sure about voting/promotion events). I understand that the documentation states that either of these actions raises an AutoReconnect exception.

      Our code uses the ReplicaSetConnection to make connections to the db. When a change is made to the replicaset, are there any scenarios where the pymongo driver and connection pool will "autoreconnect", or do we simply need to catch AutoReconnect and manage this ourselves?

      Thanks

        1. connection_sample.py
          1.0 kB
        2. python_402.zip
          684 kB

            Assignee:
            A. Jesse Jiryu Davis
            Reporter:
            PD Devs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: