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

Queries can sometimes permanently fail after a replica set fail over.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.11
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      ALL

      If any operation is run against a replica set while an election is in progress pymongo can get into a permanent failure state. Pymongo calls end_request after each failed attempt to find the replica set primary, adding a socket that is currently connected to a secondary to the connection pool. The next operation after we fail to find a new primary will use this socket under the assumption it is connected to the primary causing all operations to fail with a slaveOk error.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: