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

Configurable retry - questions/clarifications #993

Closed
ErikEJ opened this issue Mar 17, 2021 · 6 comments
Closed

Configurable retry - questions/clarifications #993

ErikEJ opened this issue Mar 17, 2021 · 6 comments

Comments

@ErikEJ
Copy link
Contributor

ErikEJ commented Mar 17, 2021

1: Is it possible to remove entries from the default list:

2: Why is the default list different from https://github.com/dotnet/efcore/blob/main/src/EFCore.SqlServer/Storage/Internal/SqlServerTransientExceptionDetector.cs#L24 (there may be good reasons...)

@DavidEshtehari

@roji
Copy link
Member

roji commented Mar 17, 2021

Just a reminder about implementing SqlException.IsTransient, which is related to this.

@scoriani
Copy link

@ErikEJ that list has been validated with multiple teams within AzureSQL team (e.g. Gateway, resource governance, etc.) and as of now represents the most accurate representation of most common transient errors for the service. The list on EFCore seems a superset that includes also some transaction related errors that may be specific to their business logic, but we couldn't find a good use case to treat them as default. Of course users can still add those error codes in config file or in code if they will find them useful.

@ErikEJ
Copy link
Contributor Author

ErikEJ commented Mar 17, 2021

Thanks for the info, @scoriani

@AndriySvyryd @ajcvickers FYI!

@ErikEJ
Copy link
Contributor Author

ErikEJ commented Mar 17, 2021

@scoriani So it is currently not possible to remove any?

@scoriani
Copy link

Not for now. To be completely honest, that feature was in my initial prototype 😀. I was using + and - signs after the error numbers in the list to indicate error codes to add or remove from the default list, but during internal reviews that was considered a bit too cumbersome.

@ErikEJ
Copy link
Contributor Author

ErikEJ commented Mar 17, 2021

Also overkill, given the limited size of the list!

@ErikEJ ErikEJ closed this as completed Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants