Skip to content

Handle FileNotFound for symlinks when using polling - #56915

Merged
adamsitnik merged 3 commits into
dotnet:mainfrom
jozkee:symlink-polling-retry
Aug 10, 2021
Merged

adamsitnik merged 3 commits into
dotnet:mainfrom
jozkee:symlink-polling-retry

Conversation

@jozkee

@jozkee jozkee commented Aug 5, 2021 •

Copy link
Copy Markdown
Member

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

ghost commented Aug 5, 2021

Copy link
Copy Markdown

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

@jozkee
jozkee force-pushed the symlink-polling-retry branch from fa3d312 to a9ecb2d Compare August 5, 2021 19:11
@jozkee
jozkee marked this pull request as ready for review August 6, 2021 04:11

@adamsitnik adamsitnik left a comment

Copy link
Copy Markdown
Member

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

@jeffhandley jeffhandley left a comment

Copy link
Copy Markdown
Member

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

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

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