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

[release/7.0] Invalidate buffered data when bypassing the cache #80503

Merged
merged 4 commits into from
Jan 12, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 11, 2023

Backport of #80432 to release/7.0

Customer Impact

Customers who are using FileStream.ReadAsync with buffering enabled (the default) might read incorrect data. It's a silent error, but the "good thing" about this bug is that it's really hard to reproduce (a very specific sequence of reads and backward seeks need to be performed).

Testing

Automated tests were added, and they are passing. Additional local validation against repro provided by the customer has confirmed that the bug is gone.

Risk

Very low, the change simply invalidates the cache at the right time.

No OOB changes needed for System.IO.FileSystem or System.Private.CoreLib.

@ghost
Copy link

ghost commented Jan 11, 2023

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

Issue Details

Backport of #80432 to release/7.0

/cc @adamsitnik

Customer Impact

Testing

Risk

IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

Author: github-actions[bot]
Assignees: -
Labels:

area-System.IO

Milestone: -

@carlossanlop
Copy link
Member

@adamsitnik please fill out the template describing how this affected customers and how the fix addressed it. When ready, please send an email to Tactics requesting approval, and add the servicing-consider label.

The Code Complete cut-off date has been moved to Fri Jan 13th since next weekend is a long weekend (Monday is a holiday in the US). So we want to try to merge all backports before Friday EOD to monitor the base branch for any unexpected breaks.

@adamsitnik adamsitnik added the Servicing-consider Issue for next servicing release review label Jan 12, 2023
@leecow leecow added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Jan 12, 2023
@leecow leecow modified the milestones: 7.0.x, 7.0.3 Jan 12, 2023
@carlossanlop
Copy link
Member

Approved by Tactics (7.0.3).
Signed off by area owner.
No OOB changes needed for System.IO.FileSystem/System.Private.CoreLib.
CI is green.
Ready to merge. :shipit:

@carlossanlop carlossanlop merged commit cdc7e17 into release/7.0 Jan 12, 2023
@carlossanlop carlossanlop deleted the backport/pr-80432-to-release/7.0 branch January 12, 2023 21:45
@ghost ghost locked as resolved and limited conversation to collaborators Feb 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.IO Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants