[SERVER-39068] Replication of simultaneous index builds startIndexBuild and commitIndexBuild oplog entries Created: 17/Jan/19  Updated: 29/Oct/23  Resolved: 12/Feb/19

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

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: index-repl
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-37643 add createIndexes command logic to th... Closed
depends on SERVER-38701 Prohibit new simultaneous index build... Closed
is depended on by SERVER-37940 Establish a code path for FCV 4.0 and... Closed
is depended on by SERVER-39239 Two-phase index builds on secondaries... Closed
Backwards Compatibility: Fully Compatible
Sprint: Storage NYC 2019-02-11, Storage NYC 2019-02-25
Participants:
Story Points: 8

 Description   

A temporary command, twoPhaseCreateIndexes, already exists. SERVER-39066 sets up the OpObserver and oplog.cpp. Wait for SERVER-37643 to set up builders in the IndexBuildsCoordinator/Manager.

Then, set up a code path into the Coordinator/Manager that will do a two phase index build, and have the twoPhaseCreateIndexes command call it. The twoPhaseIndexBuild flag in the ReplIndexBuildState object should be set. A startIndexBuild oplog entry should optionally (based on the Coordinator's twoPhaseIndexBuild setting) be written in the same WUOW as the index catalog entry initialization write: this should parallel the oplog write on commit seen here and here. The startIndexBuild oplog entry should start an index build, which I think is already hooked up, just inactive and not tested. The commitIndexBuild oplog entry should optionally be swapped out with the createIndexes oplog entry currently written on index commit, based on the twoPhaseCreateIndexes setting. Secondaries don't do anything on receipt of commitIndexBuild, and we will leave that to implement in a separate patch.



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

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-39068 Replicate startIndexBuild and commitIndexBuild oplog entrires
Branch: master
https://github.com/mongodb/mongo/commit/7defb111584754daefece019f9045e1f0e1811ef

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