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

[TUF] Retry temp directory removals #1546

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

RebeccaMahany
Copy link
Contributor

I've seen some error logs updates library contains invalid version from the TidyLibrary routine, where the invalid version is one of the temporary directories we use to stage downloads before they're ready for use. These directories are supposed to get cleaned up before the update was completed, but they weren't. It looks like at least on Windows this is sometimes due to Windows holding onto the dir a little longer than expected, giving us errors about the launcher.exe in the directory still being in use.

This isn't a huge deal -- the TidyLibrary routine does correctly remove these versions anyway -- but it would be nice to not see these errors as frequently, so I've added a backoff-retry for the directory removal.

@RebeccaMahany RebeccaMahany added this pull request to the merge queue Jan 12, 2024
Merged via the queue into kolide:main with commit 65eb6b9 Jan 12, 2024
26 checks passed
@RebeccaMahany RebeccaMahany deleted the becca/tuf-remove-retry branch January 12, 2024 16:06
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.

2 participants