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

MongoClient does not mark a server Unknown when handling NotMaster errors embedded in a write concern error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.11
    • Component/s: None
    • Labels:
      None

      Description

      MongoClient does not mark a server Unknown when handling NotMaster errors embedded in a write concern error. We never implemented this prose test: https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring-tests.rst#node-is-recovering-error-from-a-write-concern-error

      The following command responses should mark the server Unknown:

      {ok:1, writeConcernError: {code: 91, codeName: "ShutdownInProgress"}}
      {ok:1, writeConcernError: {code: 189, codeName: "PrimarySteppedDown"}}
      {ok:1, writeConcernError: {code: 11600, codeName: "InterruptedAtShutdown"}}
      {ok:1, writeConcernError: {code: 11602, codeName: "InterruptedDueToReplStateChange"}}
      etc...
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              shane.harvey Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: