Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-31532

Change error message to start with "not master" rather than "not primary"

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • TIG 2017-10-23

    Description

      Some drivers parse error messages returned by the server, looking for strings like "not master." We should change this error message to start with "not master" rather than "not primary."

      The result of the error message starting with "not primary" instead of "not master" is that pymongo raises a generic OperationFailure exception rather than a NotMaster exception after processing the error message. This is causing problems in TIG's continuous stepdown hook.

      Attachments

        Activity

          People

            ian.boros@mongodb.com Ian Boros
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: