-
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
Add back execution retry for query. #18691
Conversation
cc @Pilchie |
31476fe
to
92808a3
Compare
} | ||
|
||
public ReaderColumn[] ProjectionColumns { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
entry method into visitor with out parameter
if (ProjectionColumns != null) | ||
{ | ||
var columnType = valueExpression.Type; | ||
if (!columnType.IsValueType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For non value type you wouldn't need casting to object, It should just work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need it to compile to Func<DbDatareader, int[], object>
92808a3
to
3ca6af9
Compare
Move the retry scope for SaveChanges to properly reset the state before retrying. Fixes #18628
3ca6af9
to
70c8988
Compare
Includes test changes done in dotnet/efcore#18691 Tests now run using retrying strategy, hopefully working around the transient exceptions we're seeing on CI since the migration tests. Closes npgsql#1244
Includes test changes done in dotnet/efcore#18691 Tests now run using retrying strategy, hopefully working around the transient exceptions we're seeing on CI since the migration tests. Closes #1244
Issue:
We lacked tests for implicit usage of the execution strategy, so when the query pipeline was rewritten the lack of this feature wasn't detected.
Solution:
Add execution retry for query with a buffering data reader.
Move the retry scope for SaveChanges to properly reset the state before retrying.
Add tests for implicit usage of the execution strategy.
Fixes #18628