[SERVER-38977] Add hooks to replSetReconfig and replSetHeartbeat to inform the index builds coordinator of any changes that can affect commitQuorum achievablility Created: 14/Jan/19  Updated: 29/Oct/23  Resolved: 13/Feb/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.1.9

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Storage NYC 2019-02-11, Storage NYC 2019-02-25
Participants:

 Description   

Per the design document,

"A hook will be added to replSetReconfig to inform index builds of replica set config changes that could affect their ability to ever achieve their commitQuorum setting. replSetReconfig can remove replica set members, remove replica tags sets or change member voting rights. Index builds on primaries will check whether quorum can still be achieved and abort the build if not. Quorum achievability will also be checked on stepup, to eliminate races. Additionally, replSetReconfig can be called against a secondary, and the primary may only discover the reconfig via a replSetHeartbeat. So a similar hook will be added to the code replSetHeartbeat uses when the replset config version number changes, reflecting a config change, to inform the primary in that situation."

Add a new function, onReplicaReconfig, that the hooks call into. We'll leave the function unimplemented for now. Someday it will prompt index builds synchronously or asynchronously to check for commitQuorum satisfiability.



 Comments   
Comment by Githook User [ 13/Feb/19 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-38977 Notify the IndexBuildsCoordinator of any changes to the replica set config
Branch: master
https://github.com/mongodb/mongo/commit/9f6ab44d229a40b65e9b0316fb3d72f494504768

Generated at Thu Feb 08 04:50:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.