[SERVER-41761] MultiIndexBlock::init() fails to clean up temporary record stores on IndexBuildBlock::init() failure Created: 14/Jun/19  Updated: 29/Oct/23  Resolved: 08/Aug/19

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

Type: Bug Priority: Major - P3
Reporter: Benety Goh Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-50956 Test resuming larger index builds tha... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2019-08-12
Participants:
Linked BF Score: 13

 Description   

The RecoveryUnit rollback handler in MultiIndexBlock::init() removes the temporary record stores in _indexes created in IndexCatalog::IndexBuildBlock::init().

However, it may be possible that we may fail to clean up the temporary record store if IndexCatalog::IndexBuildBlock::init() fails before we update the list of IndexBuildBlocks.



 Comments   
Comment by Githook User [ 08/Aug/19 ]

Author:

{'name': 'Daniel Gottlieb', 'email': 'daniel.gottlieb@mongodb.com', 'username': 'dgottlieb'}

Message: SERVER-41761: Ensure index cleanup is performed on initialization failure.
Branch: master
https://github.com/mongodb/mongo/commit/37dc4398994e1af5ed002b0d7e87fe754b6572d5

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