[SERVER-39086] Move startup recovery index creation logic into IndexBuildsCoordinator Created: 18/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: Benety Goh Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-39290 Remove startup index recovery redunda... Closed
Gantt Dependency
has to be done after SERVER-37643 add createIndexes command logic to th... Closed
Related
related to SERVER-14746 IndexRebuilder should only restart in... Closed
related to SERVER-37966 Do not wait for index build completio... Closed
is related to SERVER-39620 Do not rely on collection UUIDs durin... Closed
is related to SERVER-39653 During startup index recovery, ensure... Closed
Backwards Compatibility: Fully Compatible
Sprint: Storage NYC 2019-02-11, Storage NYC 2019-02-25
Participants:
Linked BF Score: 18
Story Points: 8

 Description   

Index creation during startup recovery should be delegated to the IndexBuildsCoordinator



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

Author:

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

Message: SERVER-39086 Refactor startup index builds to use the IndexBuildsCoordinator
Branch: master
https://github.com/mongodb/mongo/commit/5c0be87432ba798f50cf6f14a65d24b6b3084838

Comment by Githook User [ 10/Feb/19 ]

Author:

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

Message: SERVER-39086 Refactor system_index.cpp to build indexes using the IndexBuildsCoordinator during startup
Branch: master
https://github.com/mongodb/mongo/commit/fd5f4c12ac1c1403fbdf816c1650c97ad4606fdc

Comment by Dianna Hohensee (Inactive) [ 28/Jan/19 ]

Dan.G mentioned that some special startup/recovery opCtx state might need to be copied over into the IndexBuildsCoordinator thread's opCtx. There may or may not be the beginnings of a generic solution for this as part of Benety's work in SERVER-37643. Also keep in mind that we want to do SERVER-37966, in case that becomes relevant.

Comment by Dianna Hohensee (Inactive) [ 22/Jan/19 ]

Note that SERVER-37966 handles not waiting for index builds to finish on startup. This ticket should just move logic into the interface and continue to wait for it to finish, as there are some edge cases to handle in SERVER-37966.

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