[SERVER-43729] replSetFreeze done part of RollbackTest.transitionToSyncSourceOperationsDuringRollback Should be resilient of errors. Created: 30/Sep/19  Updated: 29/Oct/23  Resolved: 10/Oct/19

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

Type: Bug Priority: Major - P3
Reporter: Suganthi Mani 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
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Sprint: Repl 2019-10-07, Repl 2019-10-21
Participants:
Linked BF Score: 7

 Description   

rollback_fuzzer_[un]clean_shutdowns suites performs restart of nodes between the RollbackTest transition phase. When the nodes are restarted, we only wait until a current primary is elected and available to accept writes in the replica set. As a result, replSetFreeze cmd executed as part of this RollbackTest state transition method transitionToSyncSourceOperationsDuringRollback(), can throw an error if the node restarted is an uninitialized state (not yet loaded the local config or not reached the STARUP2 repl state).



 Comments   
Comment by Githook User [ 17/Oct/19 ]

Author:

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

Message: SERVER-43729: Wait for secondary state before running replSetFreeze in RollbackTest.transitionToSyncSourceOperationsDuringRollback

(cherry picked from commit 22c6eb00028fae04472a08b7029cf664d2243c71)
Branch: v4.2
https://github.com/mongodb/mongo/commit/da0131a512503577cb942ac51924c73eed09fa46

Comment by Githook User [ 10/Oct/19 ]

Author:

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

Message: SERVER-43729: Wait for secondary state before running replSetFreeze in RollbackTest.transitionToSyncSourceOperationsDuringRollback
Branch: master
https://github.com/mongodb/mongo/commit/22c6eb00028fae04472a08b7029cf664d2243c71

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