[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: |
|
||||||||||||
| 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: |