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

Fix #1870: Race condition with some virus scanners #1873

Merged
merged 1 commit into from May 25, 2019

Conversation

rbtcollins
Copy link
Contributor

Some virus scanners take out handles on files we are going to
rename, causing access errors and preventing the rename. Typically
this is short lived. Retry rather than erroring.

No feedback given at the moment, and depends on an unreleased
retry, so WIP...

Some virus scanners take out handles on files we are going to
rename, causing access errors and preventing the rename. Typically
this is short lived. Retry rather than erroring.

No feedback given at the moment, and it will be a much larger patch to
do so - as this is a regression fix I'd like to get it in and released
and follow up with something thread all the UI channels down to this
layer later (e.g. an implicit context mechanism of some sort perhaps?)
Copy link
Contributor

@kinnison kinnison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sound, thank you for doing the work with the retry crate too.

One point to address

src/utils/utils.rs Show resolved Hide resolved
@rbtcollins
Copy link
Contributor Author

rbtcollins commented May 25, 2019 via email

@kinnison
Copy link
Contributor

This will happen to wsl v1 users on windows too as they share a file system.

Accepted.

Copy link
Contributor

@kinnison kinnison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we get a green CI, this LGTM.

@kinnison
Copy link
Contributor

I think the appveyor failure is spurious.

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.

None yet

2 participants