[DOCS-6115] clarifications for https://docs.mongodb.org/manual/reference/command/replSetStepDown/ Created: 28/Aug/15  Updated: 30/Oct/23  Resolved: 01/Nov/22

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Alexander Komyagin Assignee: Kay Kim (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 1 year, 14 weeks, 1 day ago
Epic Link: DOCSP-1769

 Description   

As discussed with milkie, this page can use more clarity w.r.t. expected behaviors of secondaries after the primary has stepped down via force:true. IIRC:

  • In 3.0 (and earlier) a secondary will not run for the election unless it's the freshest. So if you force a stepdown of your primary, and your secondaries are still catching up, you will not have a primary until the freeze timeout expires or until one of the secondaries catches up and runs for the election. I.e. rollbacks are unlikely.
  • In 3.2 under certain circumstances a stale secondary might get elected after a forced stepdown, so rollbacks are more likely.. However, w:majority writes will not be rolled back.

Additionally, if I understood milkie correctly, the replSetStepDown command takes a global lock for the duration of secondaryCatchUpPeriodSecs, and that can result in queueing and potentially in accumulating connections on the primary.



 Comments   
Comment by Education Bot [ 01/Nov/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Comment by Eric Milkie [ 28/Aug/15 ]

After I took a more careful look at the current docs page, we do indeed already mention the part about writes queuing while the command is running.

Generated at Thu Feb 08 07:51:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.