[SERVER-39715] Do not drop index build temp tables on clean shutdown Created: 21/Feb/19  Updated: 29/Oct/23  Resolved: 09/Jun/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: Backlog
Fix Version/s: 4.7.0

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

Issue Links:
Related
related to SERVER-41141 Remove DB X lock acquisition for seco... Closed
related to SERVER-48417 adjust startup to resume index build ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-06-15
Participants:
Linked BF Score: 0

 Description   

The side writes table and constraint violations table must survive clean shutdown when index builds are interrupted.

SERVER-39703 is going to add a IndexBuildBlock::deleteTemporaryTables() function and always drop the tables. This ticket must optionally call the function – e.g. not for clean shutdown when index builds are interrupted via MultiIndexBlock::abortWithoutCleanup; and also must handle the tables on startup so that we do not pile up orphaned tables – SERVER-39003 made it so that they won't be dropped on startup if they exist.



 Comments   
Comment by Githook User [ 09/Jun/20 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-39715 Keep index build temporary tables on clean shutdown
Branch: master
https://github.com/mongodb/mongo/commit/751a68393e46e6f4706f4fce1c9b4ef2f6207f32

Comment by Eric Milkie [ 08/Jun/20 ]

This ticket might be subsumed by other work.

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