Skip to content

Conversation

rohkhann
Copy link
Contributor

Why make this change?

Datawarehouse's can have cold start up issues leading to sql error: The SQL pool is warming up. Please try again.
This is a transient exception and the recommendation is to just retry and connect back to the server:https://github.com/MicrosoftDocs/sql-docs/blob/live/docs/relational-databases/errors-events/mssqlserver-42109-database-engine-error.md.

What is this change?

This change adds the error code for the Sql pool is warming up into the transient error code list, ensuring the retry logic comes into play if this error comes up. For the code please see: https://github.com/dotnet/efcore/blob/main/src/EFCore.SqlServer/Storage/Internal/SqlServerTransientExceptionDetector.cs

How was this tested?

  1. Existing integration tests cover the logic for retry on transient exception codes.

@rohkhann
Copy link
Contributor Author

/azp run

@rohkhann rohkhann enabled auto-merge (squash) May 30, 2024 23:26
@rohkhann rohkhann merged commit 0558815 into main May 30, 2024
@rohkhann rohkhann deleted the dev/rohkhann/SqlPoolWarmingUp branch May 30, 2024 23:46
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

Successfully merging this pull request may close these issues.

3 participants