[SERVER-37966] Do not wait for index build completion on startup Created: 06/Nov/18  Updated: 29/Oct/23  Resolved: 11/Mar/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.4.0-rc0, 4.7.0

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

Issue Links:
Backports
Gantt Dependency
has to be done after SERVER-37643 add createIndexes command logic to th... Closed
Related
related to SERVER-38118 Write characterization tests for rest... Closed
related to SERVER-38910 Remove redundant rollback handling on... Closed
is related to SERVER-38702 Set up FCV for simultaneous index builds Closed
is related to SERVER-39086 Move startup recovery index creation ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.0
Sprint: Execution Team 2019-12-02, Execution Team 2019-12-30, Execution Team 2020-03-23
Participants:

 Description   

This must be done after SERVER-37643 moves all index builds behind the index builds interface to run asynchronously on a Threadpool.

Startup should recover and restart index builds that were in-progress on shutdown, but not wait for their completion or the result (failure/success).



 Comments   
Comment by Githook User [ 02/Apr/20 ]

Author:

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

Message: SERVER-37966 Do not wait for index build completion on startup

(cherry picked from commit c6dfd8304c2d6a6b276636b4b17546fd4fc8f8d1)
Branch: v4.4
https://github.com/mongodb/mongo/commit/58531bf43c18b9711da518bccdda411d2b4d405a

Comment by Githook User [ 11/Mar/20 ]

Author:

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

Message: SERVER-37966 Do not wait for index build completion on startup
Branch: master
https://github.com/mongodb/mongo/commit/c6dfd8304c2d6a6b276636b4b17546fd4fc8f8d1

Comment by Gregory Wlodarek [ 11/Mar/20 ]

The goal for this ticket is already achieved, I'll just be adding a test to lock in these changes.

Comment by Louis Williams [ 19/Dec/19 ]

I believe this is completed by SERVER-44467.

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

Additionally, SERVER-38910 unearthed that logic to rebuild one-phase dropped indexes cannot be removed because upgrade from v4.0 for v4.2 must be supported. Therefore, the reconcile idents function must continue to support returning two kinds of rebuilds, those that must be rebuilt immediately for consistency concerns, and those that are regularly in-progress and must build asynchronously to await commit/abort messages from the replica set primary.

Comment by Dianna Hohensee (Inactive) [ 17/Dec/18 ]

This work depends on SERVER-37643 moving the startup index builders into the IndexBuildsCoordinator.

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