[DOCS-14721] [SERVER]Investigate changes in SERVER-50192: mongod --replSet --repair fails with NotMasterNoSlaveOk error Created: 09/Aug/21  Updated: 13/Nov/23  Resolved: 18/May/23

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: 5.1.0-rc0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: manual, server
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-50192 mongod --replSet --repair fails with ... Closed
Participants:
Days since reply: 37 weeks, 6 days ago

 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.



 Comments   
Comment by Sarah Olson [ 18/May/23 ]

Closing this out as WON'T FIX on the grounds that this is a relatively old ticket. In addition, I suspect some additional changes have been made to this functionality in the nearly two years this ticket has been open. 

Generated at Thu Feb 08 08:11:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.