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

Rewrite NotPrimaryNoSecondaryOk error message?

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.14.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Not Needed
    • Iteration Chicago, Iteration Düsseldorf

      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()`).

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

              Created:
              Updated:
              Resolved: