[SERVER-48046] {replSetFreeze: 0} done in RollbackTest.restartNode() should be resilient of network errors Created: 08/May/20  Updated: 29/Oct/23  Resolved: 11/May/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.2.7, 4.4.0-rc6, 4.7.0

Type: Task Priority: Major - P3
Reporter: Lingzhi Deng 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
Related
related to SERVER-43237 replSetFreeze and replSetStepDown cmd... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.2
Participants:
Linked BF Score: 19

 Description   

In RollbackTest.restartNode we try to freeze and unfreeze the current secondary to prevent elections from happening when we restart the primary. We use ReplSetTest.freeze to freeze which handles network errors (see SERVER-43237). But when we try to unfreeze, we use a vanilla adminCommand which does NOT handle network errors. However, if the current secondary is in rollback, the node would close all user connections so the this replSetFreeze command could fail with network errors for the same reasons as described in SERVER-43237. So I think we should also make the "unfreeze" part in RollbackTest.restartNode() resilient of network errors.



 Comments   
Comment by Githook User [ 11/May/20 ]

Author:

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

Message: SERVER-48046:

{replSetFreeze: 0}

done in RollbackTest.restartNode() should be resilient of network errors

(cherry picked from commit f2aa1ffe05804aa3cc21ad5f980bca998dde09f3)
Branch: v4.2
https://github.com/mongodb/mongo/commit/8b7d17c7d97146a3996505130ae5288269903726

Comment by Githook User [ 11/May/20 ]

Author:

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

Message: SERVER-48046:

{replSetFreeze: 0}

done in RollbackTest.restartNode() should be resilient of network errors

(cherry picked from commit f2aa1ffe05804aa3cc21ad5f980bca998dde09f3)
Branch: v4.4
https://github.com/mongodb/mongo/commit/62500b7d0c8ae644916fcd13573a6bcb63e80d8c

Comment by Githook User [ 11/May/20 ]

Author:

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

Message: SERVER-48046:

{replSetFreeze: 0}

done in RollbackTest.restartNode() should be resilient of network errors
Branch: master
https://github.com/mongodb/mongo/commit/f2aa1ffe05804aa3cc21ad5f980bca998dde09f3

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