[SERVER-54366] Wait for node to start stepdown before killing shutdown operation in force_shutdown_primary.js Created: 05/Feb/21  Updated: 29/Oct/23  Resolved: 08/Feb/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0, 4.2.13, 4.4.5

Type: Bug Priority: Major - P3
Reporter: Ali Mir Assignee: Ali Mir
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4, v4.2
Sprint: Repl 2021-02-08, Repl 2021-02-22
Participants:
Linked BF Score: 11

 Description   

In force_shutdown_primary.js, we may kill the shutdown operation before we actually start attempting to step the primary down. As a result, the parallel shell can exit cleanly with an exit code of zero, when we expect it to have a nonzero code. We should add a failpoint right before stepdown, and wait for the primary to reach that failpoint before we attempt to kill the shutdown operation.



 Comments   
Comment by Githook User [ 23/Feb/21 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-54366 Wait for node to start stepdown before killing shutdown operation in force_shutdown_primary.js

(cherry picked from commit 2f3010a29bed0d3733a428021a9cc66c83580fd0)
Branch: v4.2
https://github.com/mongodb/mongo/commit/b964c7a249cd2329203e6dffeec18da716235b71

Comment by Githook User [ 23/Feb/21 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-54366 Wait for node to start stepdown before killing shutdown operation in force_shutdown_primary.js

(cherry picked from commit 2f3010a29bed0d3733a428021a9cc66c83580fd0)
Branch: v4.4
https://github.com/mongodb/mongo/commit/9219f1039a6a976ba4a8e9f4b684f17e47b6c5f9

Comment by Githook User [ 08/Feb/21 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-54366 Wait for node to start stepdown before killing shutdown operation in force_shutdown_primary.js
Branch: master
https://github.com/mongodb/mongo/commit/2f3010a29bed0d3733a428021a9cc66c83580fd0

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