Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14721

[SERVER]Investigate changes in SERVER-50192: mongod --replSet --repair fails with NotMasterNoSlaveOk error

    XMLWordPrintable

Details

    • Task
    • Status: Open
    • Major - P3
    • Resolution: Unresolved
    • None
    • 5.1.0-rc0
    • None

    Description

      Downstream Change Summary

      These flags --repl and --repair should not be used together

      Description of Linked Ticket

      Create a 3-node replica set, shut it down, then restart with --repair. The repair does not complete, failing part way through with the following error:

      {"t":\{"$date":"2020-08-08T08:02:45.266-04:00"},"s":"E", "c":"STORAGE", "id":20557, "ctx":"initandlisten","msg":"DBException in initAndListen, terminating","attr":\{"error":"NotMasterNoSlaveOk: not master and slaveOk=false"}}
      

      This happens on all 3 nodes. Debug level 5 logs attached.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              backlog-server-pm Backlog - Core Eng Program Management Team
              Ian Fogelman Ian Fogelman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                1 year, 8 weeks ago