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

[6.0.x] Reset read count on RelationalDataReader #27852

Merged
merged 1 commit into from
May 6, 2022

Conversation

roji
Copy link
Member

@roji roji commented Apr 21, 2022

Description
As part of the EF Core 6.0 query perf optimization cycle, RelationalDataReader started to get recycled across executions, but the read count value wasn't properly reset.

Customer impact
When tracking how many reader reads were performed via DataReaderDisposingEventData.ReadCount, users got incorrect values since the count wasn't properly reset across usages of RelationalDataReader. No known workaround.

How found
Customer reported on 6.0.

Regression
Yes, From 5.0.

Testing
Added test.

Risk
Very low risk, one-line fix.

Backports #27845
Fixes #27652

@ajcvickers ajcvickers added this to the 6.0.x milestone Apr 21, 2022
@leecow leecow modified the milestones: 6.0.x, 6.0.6 Apr 21, 2022
@mmitche
Copy link
Member

mmitche commented May 4, 2022

@ajcvickers Are these ready to go?

@ajcvickers
Copy link
Member

@mmitche Yes, once the branch is open. /cc @wtgodbe

@mmitche
Copy link
Member

mmitche commented May 5, 2022

@mmitche Yes, once the branch is open. /cc @wtgodbe

It's open, assuming you have merged your branding PRs

@wtgodbe wtgodbe merged commit 282fe31 into dotnet:release/6.0 May 6, 2022
@roji roji deleted the ReaderReadCount6.0 branch May 7, 2022 08:37
@ajcvickers ajcvickers removed this from the 6.0.6 milestone May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants