[SERVER-62380] Wait for majority commit point to be advanced on each node before starting rollback test in rollback_set_fcv.js Created: 05/Jan/22  Updated: 29/Oct/23  Resolved: 06/Jan/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0, 5.0.6, 5.2.1, 4.4.13

Type: Bug Priority: Major - P3
Reporter: Huayu Ouyang Assignee: Huayu Ouyang
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:
v5.2, v5.1, v5.0, v4.4
Sprint: Replication 2022-01-10
Participants:
Linked BF Score: 34

 Description   

We should call awaitLastOpCommitted after setting the FCV but before starting the rollback test.

This is because after setting the FCV, the secondary might not have updated its knowledge of the majority commit point through heartbeats before it is isolated from the set, so its lastFCVUpdateTimestamp will be after the majority commit point, which will cause checking the FCV to hang



 Comments   
Comment by Githook User [ 20/Jan/22 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-62380 Wait for majority commit point to be advanced on secondary before starting rollback test in rollback_set_fcv.js

(cherry picked from commit d9f48866389096561f9d2582de141e068928f1d6)
Branch: v4.4
https://github.com/mongodb/mongo/commit/68be7c70f5ba60a745507515243bdd376f737e91

Comment by Githook User [ 20/Jan/22 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-62380 Wait for majority commit point to be advanced on secondary before starting rollback test in rollback_set_fcv.js

(cherry picked from commit d9f48866389096561f9d2582de141e068928f1d6)
Branch: v5.2
https://github.com/mongodb/mongo/commit/a4d0b4b49dd5b28e9ff938e9e5d6af283d82bf0e

Comment by Githook User [ 20/Jan/22 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-62380 Wait for majority commit point to be advanced on secondary before starting rollback test in rollback_set_fcv.js

(cherry picked from commit d9f48866389096561f9d2582de141e068928f1d6)
Branch: v5.0
https://github.com/mongodb/mongo/commit/f87e64bcff8f095836c9fe3ba77499716c63f3e4

Comment by Githook User [ 06/Jan/22 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-62380 Wait for majority commit point to be advanced on secondary before starting rollback test in rollback_set_fcv.js
Branch: master
https://github.com/mongodb/mongo/commit/d9f48866389096561f9d2582de141e068928f1d6

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