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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.11
    • Component/s: None
    • Labels:
      None
    • Environment:
      ALL
    • # Replies:
      1
    • Last comment by Customer:
      true

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              behackett Bernie Hackett
              Reporter:
              behackett Bernie Hackett
              Participants:
              Last commenter:
              Rathi Gnanasekaran
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                7 years, 39 weeks, 1 day ago
                Date of 1st Reply: