[SERVER-54339] Prevent spontaneous elections in rollback_crud_op_sequences.js Created: 05/Feb/21  Updated: 29/Oct/23  Resolved: 06/Feb/21

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

Type: Bug Priority: Major - P3
Reporter: Xuerui Fa Assignee: Xuerui Fa
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: 15

 Description   

In the linked BF, we see the primary step down unexpectedly due to a slow heartbeat. Since the purpose of the test is to run operations before/during/after rollback, the RollbackTest fixture seems perfectly suited to be used here. We can probably convert the test to use the fixture, which I believe handles unexpected elections.



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

Author:

{'name': 'XueruiFa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-54339: Prevent spontaneous elections in rollback_crud_op_sequences.js

(cherry picked from commit 395a73ccd6d053c964de7f0fe4f16920cb40350a)
Branch: v4.2
https://github.com/mongodb/mongo/commit/5770774220e834c5fdae4f95354af722eaa0f386

Comment by Githook User [ 25/Feb/21 ]

Author:

{'name': 'XueruiFa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-54339: Prevent spontaneous elections in rollback_crud_op_sequences.js

(cherry picked from commit 395a73ccd6d053c964de7f0fe4f16920cb40350a)
Branch: v4.4
https://github.com/mongodb/mongo/commit/f19a895fdbd5c3f09cc9a7d12a1e710562781697

Comment by Githook User [ 06/Feb/21 ]

Author:

{'name': 'XueruiFa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-54339: Prevent spontaneous elections in rollback_crud_op_sequences.js
Branch: master
https://github.com/mongodb/mongo/commit/395a73ccd6d053c964de7f0fe4f16920cb40350a

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