-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
ExecutionStrategy ignored when doing ToList() in EF Core 3.0 #18628
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
providers-beware
regression
type-bug
Milestone
Comments
@AndriySvyryd Thoughts? |
AndriySvyryd
added a commit
that referenced
this issue
Oct 31, 2019
Move the retry scope for SaveChanges to properly reset the state before retrying. Fixes #18628
AndriySvyryd
added a commit
that referenced
this issue
Nov 1, 2019
Move the retry scope for SaveChanges to properly reset the state before retrying. Fixes #18628
ajcvickers
added
the
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
label
Nov 1, 2019
AndriySvyryd
added a commit
that referenced
this issue
Nov 1, 2019
Move the retry scope for SaveChanges to properly reset the state before retrying. Fixes #18628
AndriySvyryd
added a commit
that referenced
this issue
Nov 1, 2019
Move the retry scope for SaveChanges to properly reset the state before retrying. Fixes #18628
AndriySvyryd
added a commit
that referenced
this issue
Nov 1, 2019
Move the retry scope for SaveChanges to properly reset the state before retrying. Fixes #18628
AndriySvyryd
added a commit
that referenced
this issue
Nov 2, 2019
Move the retry scope for SaveChanges to properly reset the state before retrying. Fixes #18628
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
providers-beware
regression
type-bug
The configured execution strategy (either a custom one or SqlServerRetryingExecutionStrategy via e.g. EnableRetryOnFailure()) is not being used when ToList() is called on a DbSet.
It does seems to be used when SaveChanges() is called, however.
In EF Core 2.2, the execution strategy would be used for queries (e.g. ToList()) as well as on SaveChanges().
This is causing our queries to fail occasionally due to deadlocks:
without it attempting to retry.
Steps to reproduce
Further technical details
EF Core version: 3.0.0
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET Core 3.0
Operating system: macOS High Sierra
IDE: Rider 2019.2.3
The text was updated successfully, but these errors were encountered: