Closed zentron closed 2 years ago
Release Note: Modify VCS space used logic to account for file being removed while its getting calculated
:tada: The fix for this issue has been released in:
Release stream | Release |
---|---|
2021.3 | 2021.3.7040 |
2022.1+ | all releases |
Team
Severity
No response
Version
2021.3.5962
Latest Version
No response
What happened?
Transient error where the git directory is being removed while something is trying to calculate the size. We already have a handler for the whole directory being deleted, but it seems as though if the file itself is deleted while its size is being calculated it can throw a different FileNotFound exception
In cases such as this we will just ignore counting that file size.
Worst case the directory is slightly larger than it would be if it was calculated again since its possible that files which were counted no longer exist. One could argue that due to the latent race condition (we want to avoid expensive locks for its current usage) it could have been sized up completely before anything was removed and hence could have been larger still. This is really only a problem if the timing issue occurs right when the git repo is at the limits of available space and so is a reasonable handling
Reproduction
Manually delete a git repository at the same time that another is being cloned/checked out. Fairly un-likey to occur in normal usage, discovered during tests where non-standard cleanup takes place.
Error and Stacktrace
More Information
No response
Workaround
No response