[SERVER-49049] Add an initialization phase when tracking what stage index build is in Created: 23/Jun/20  Updated: 29/Oct/23  Resolved: 08/Jul/20

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Samyukta Lanka Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-07-13
Participants:

 Description   

As a part of SERVER-48416, we started tracking what phase of index build a node is in. We should separate out initializing the index build and the collection scan when tracking the phase. SERVER-48476 will add a wait before doing the collection scan for an index build, but during startup we currently don't have a way to know if that wait was completed successfully or not.

Without differentiating whether the index build was before or after the wait during shutdown, startup recovery will proceed without trying to wait, which means that it may not be safe to resume the index build if the node later goes into rollback.



 Comments   
Comment by Githook User [ 07/Jul/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-49049 add initialization phase to MultiIndexBlock for resumable index builds
Branch: master
https://github.com/mongodb/mongo/commit/5485c9ed0309205ea0c82ee1b1c393e73207761c

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