Rewrite NotPrimaryNoSecondaryOk error message?

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Anna Henningsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: