Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deletion of lock file should not fail if lock not found #261

Merged
merged 1 commit into from
Jun 9, 2024

Conversation

ChristopherRabotin
Copy link
Member

Summary

Previously we would report an error if we could not delete the lock file. However, the lock file may not exist if we never had to download anything! So the attempt to delete the lock file would fail, bubbling up as if it were an error, but it should not be one. As such, we now always ignore if the deletion fails.

A potential side effect is if we created the lock file and then the drive becomes unavailable or read only, and we cannot delete it but we should have. Then, this will cause an issue on the next load attempt, and the user is informed to delete the lock file manually.

Architectural Changes

No change

New Features

No change

Improvements

No change

Bug Fixes

No change

Testing and validation

No change.

Documentation

This PR does not primarily deal with documentation changes.

@ChristopherRabotin ChristopherRabotin merged commit 9561d88 into master Jun 9, 2024
17 checks passed
@ChristopherRabotin ChristopherRabotin deleted the hotfix/deleting-lock branch June 9, 2024 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant