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

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

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              49 weeks, 2 days ago