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

XMLWordPrintableJSON

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

      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 Hackett
            Reporter:
            Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: