[MCOL-3362] Make Downloader download to a tmp dir, then move it to cache on success Created: 2019-06-04 Updated: 2019-07-31 Resolved: 2019-07-31 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ? |
| Affects Version/s: | None |
| Fix Version/s: | 1.4.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Patrick LeBlanc (Inactive) | Assignee: | Patrick LeBlanc (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Epic Link: | ObjectStore support |
| Description |
|
Downloader currently d/ls straight to the cache directory. Partial downloads caused by a crash, or who knows what, could make Cache return that partial data and mess everything up. To fix that, Downloader should d/l to a tmp dir (ex, storagemanager/tmp), then move it to the cache after success. This would also apply to Synchronizer. When it merges a journal with its object, the merged object is created directly in the cache dir. |