[SERVER-55170] Start responding to hello requests with ok:0 when Master failed to stepDown during shutdown and forceShutdown is true Created: 11/Mar/21  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Moustafa Maher Assignee: Backlog - Replication Team
Resolution: Unresolved Votes: 0
Labels: former-quick-wins
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Assigned Teams:
Replication
Participants:
Linked BF Score: 22

 Description   

We need to start responding to hello requests with ok:0 for Primary node when it fails to step down or replica set is only 1 node when forceShutdown is set to true here
same as we do for quiesce mode for secondaries here.

As Shutdown code assumes that primaries will always be able to step-down here so it will be a secondary and will be able to enter quiesce mode eventually but that might not be the case as primary can fail to stepDown due to multiple reasons for example not able to find suitable secondary to step_up

  1. secondaries have been shutdown first
  2. Replica Set can be formed from only one node.

 


Generated at Thu Feb 08 05:35:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.