[SERVER-62680] validate cachedir make local tmp to ensure successful copy Created: 14/Jan/22 Updated: 29/Oct/23 Resolved: 19/Jan/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.3.0, 5.2.1, 5.0.7 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Daniel Moody | Assignee: | Daniel Moody |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Backport Requested: |
v5.2, v5.0
|
||||||||
| Sprint: | Dev Platform 2022-01-24 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 9 | ||||||||
| Description |
|
In BF-21589, it was found that the cache file was being removed from the remote server while the file was being copied locally. This resulting in stale file handle exception from the cachedir, however the file was partially copied and in a bad state. We opt for copying into a local tmp location and moving the tmp destination into the real destination only if the copy successfully complete.s |
| Comments |
| Comment by Githook User [ 01/Feb/22 ] |
|
Author: {'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}Message: (cherry picked from commit d20d317c08fd48b71f790c1bb013aa61c6f0f4b7) |
| Comment by Githook User [ 01/Feb/22 ] |
|
Author: {'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}Message: (cherry picked from commit d20d317c08fd48b71f790c1bb013aa61c6f0f4b7) |
| Comment by Githook User [ 19/Jan/22 ] |
|
Author: {'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}Message: |