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

    • Type: Task
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.1.0-rc0
    • Component/s: None
    • Labels:

      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

              Assignee:
              jocelyn.mendez Jocelyn Mendez
              Reporter:
              backlog-server-pm Backlog - Core Eng Program Management Team
              Participants:
              Last commenter:
              Jocelyn Mendez Jocelyn Mendez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Days since reply:
                15 weeks, 6 days ago