[SERVER-50711] Temporary files not removed when starting up after a clean shutdown Created: 02/Sep/20  Updated: 29/Oct/23  Resolved: 08/Sep/20

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

Type: Bug Priority: Major - P3
Reporter: Benety Goh Assignee: Gregory Noma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-44391 Refine startup cleanup of tmpfiles fo... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2020-09-21
Participants:

 Description   

In SERVER-44391, we started retaining temporary files in the data directory when starting up after a clean shutdown. This was done so that we could resume index builds that depended on the temporary files to reconstruct the external sorter state. If we failed to resume the index builds successfully during startup, there is a possibility that these temporary files will not be cleaned up on subsequent server restarts. In 4.4, we would always remove these temporary files regardless of the previous shutdown state.



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

Author:

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

Message: SERVER-50711 Clear temp directory if no internal idents are parsed on startup
Branch: master
https://github.com/mongodb/mongo/commit/c1808dd194575ea7a49893e782df50fe29c00bd1

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