Skip to content

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

Merged
kinnison merged 1 commit into
rust-lang:masterfrom
rbtcollins:bug-1870
May 25, 2019
Merged

Fix #1870: Race condition with some virus scanners#1873
kinnison merged 1 commit into
rust-lang:masterfrom
rbtcollins:bug-1870

Conversation

@rbtcollins

Copy link
Copy Markdown
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?)

@kinnison kinnison left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread src/utils/utils.rs
@rbtcollins

rbtcollins commented May 25, 2019 via email

Copy link
Copy Markdown
Contributor Author

@kinnison

Copy link
Copy Markdown
Contributor

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

Accepted.

@kinnison kinnison left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.

2 participants