Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-735

Rewrite NotPrimaryNoSecondaryOk error message?

    XMLWordPrintable

    Details

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

      Description

      The error message for errors with the code NotPrimaryNoSecondaryOk (aka NotMasterNoSlaveOk on older server versions) currently still is “not master and slaveOk=false”. We should consider rewriting it, even though we are not the ones generating the error message, both in the context of removing offensive terminology and in that we can provide a better error message with a concrete suggestion for the user here (e.g. pointing towards `db.getMongo().setReadPref()`).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.rose Michael Rose (Inactive)
              Reporter:
              anna.henningsen Anna Henningsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: