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

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.11
    • None
    • 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

              Unassigned Unassigned
              shane.harvey@mongodb.com Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: