[SERVER-42262] Repeat stepdown and freeze on test shutdown validation Created: 17/Jul/19  Updated: 29/Oct/23  Resolved: 16/Oct/19

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

Type: Bug Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Lingzhi Deng
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Duplicate
is duplicated by SERVER-42747 validate_collections_on_shutdown.js s... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2, v4.0
Sprint: Repl 2019-08-12, Repl 2019-08-26, Repl 2019-09-09, Repl 2019-09-23, Repl 2019-10-07, Repl 2019-10-21
Participants:
Linked BF Score: 10

 Description   

To make sure all nodes are secondary on shutdown validation, we send stepdown command and then replSetFreeze to the nodes. However, if a concurrent election is running when receiving the stepdown or after stepdown but before replSetFreeze, stepdown will fail with NotMaster and freeze will fail too.

We need to keep running the two commands until replSetFreeze succeeds.



 Comments   
Comment by Githook User [ 01/Nov/19 ]

Author:

{'username': 'ldennis', 'email': 'lingzhi.deng@mongodb.com', 'name': 'Lingzhi Deng'}

Message: SERVER-42262: Repeat stepdown and freeze on test shutdown validation

(cherry picked from commit 365496906f853e5b5fc00b1bac563c0c764f9e90)
Branch: v4.0
https://github.com/mongodb/mongo/commit/694eb1e747928f0797d29f64eded16820fa2649f

Comment by Githook User [ 30/Oct/19 ]

Author:

{'name': 'Lingzhi Deng', 'username': 'ldennis', 'email': 'lingzhi.deng@mongodb.com'}

Message: SERVER-42262: Repeat stepdown and freeze on test shutdown validation

(cherry picked from commit 365496906f853e5b5fc00b1bac563c0c764f9e90)
Branch: v4.2
https://github.com/mongodb/mongo/commit/ca65a99bf81f859454e7b74d6da866f00694e960

Comment by Githook User [ 16/Oct/19 ]

Author:

{'username': 'ldennis', 'email': 'lingzhi.deng@mongodb.com', 'name': 'Lingzhi Deng'}

Message: SERVER-42262: Repeat stepdown and freeze on test shutdown validation
Branch: master
https://github.com/mongodb/mongo/commit/365496906f853e5b5fc00b1bac563c0c764f9e90

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