[SERVER-50289] Remove tempDir from persisted resumable index build state Created: 13/Aug/20  Updated: 29/Oct/23  Resolved: 03/Sep/20

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

Type: Improvement Priority: Major - P3
Reporter: Gregory Noma 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-49409 adjust startup to resume index build ... Closed
related to SERVER-50709 Use boost::filesystem::path instead o... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-09-07
Participants:

 Description   

Currently we persist the tempDir when writing resumable index build state to disk, but we can get away without this. It may even provide confusing semantics in the case that a user performs a clean shutdown during an index build in the collection scan or bulk load phases, moves the database files, and starts the server back up with the new dbpath specified. Since the Sorter info is stored in dbpath/_tmp/, it is likely a safe assumption that the Sorter info was moved along with the rest of the database files. Thus, it makes the most sense to always use dbpath/_tmp/ rather than storing the tempDir.



 Comments   
Comment by Githook User [ 03/Sep/20 ]

Author:

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

Message: SERVER-50289 Remove tempDir from persisted resumable index build state
Branch: master
https://github.com/mongodb/mongo/commit/63bba617ae96ae338f55c835d83f4b5dfd63f52e

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