-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: manual
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.
- documents
-
SERVER-50192 mongod --replSet --repair fails with NotMasterNoSlaveOk error
- Closed