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

Handle FileNotFound for symlinks when using polling #56915

Merged
merged 3 commits into from
Aug 10, 2021

Conversation

jozkee
Copy link
Member

@jozkee jozkee commented Aug 5, 2021

Fixes #56190
Fixes #56643
Fixes #57128

@jozkee jozkee added this to the 6.0.0 milestone Aug 5, 2021
@jozkee jozkee self-assigned this Aug 5, 2021
@ghost
Copy link

ghost commented Aug 5, 2021

Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #56190
Fixes #56643

Author: Jozkee
Assignees: Jozkee
Labels:

area-System.IO

Milestone: 6.0.0

Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @jozkee

@adamsitnik adamsitnik merged commit a57a9ec into dotnet:main Aug 10, 2021
Copy link
Member

@jeffhandley jeffhandley left a comment

Choose a reason for hiding this comment

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

👍

// Try one more time, if it fails again just give up.
if (!isSecondTry)
{
GetFileLinkTargetLastWriteTimeUtc(fileInfo, isSecondTry: true);
Copy link
Member

Choose a reason for hiding this comment

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

@jozkee I'm missing something, shouldn't this return a value?

Copy link
Member

Choose a reason for hiding this comment

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

😳 I overlooked that too!

Copy link
Member

Choose a reason for hiding this comment

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

It would be interesting to have an analyzer that flagged ignored return values, although it would be hugely noisy presumably @stephentoub

Copy link
Member

Choose a reason for hiding this comment

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

@danmoseley great catch, I've sent #57136 to address that

@ghost ghost locked as resolved and limited conversation to collaborators Sep 9, 2021
@jozkee jozkee deleted the symlink-polling-retry branch November 22, 2021 18:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants