From 5e65eff639a8dd8bc4f2e53c6b70b77b75b5d40a Mon Sep 17 00:00:00 2001 From: Smit Patel Date: Fri, 15 May 2020 11:01:53 -0700 Subject: [PATCH 1/2] Add SqlServer transient error 10936 Resolves #20923 --- .../Storage/Internal/SqlServerTransientExceptionDetector.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/EFCore.SqlServer/Storage/Internal/SqlServerTransientExceptionDetector.cs b/src/EFCore.SqlServer/Storage/Internal/SqlServerTransientExceptionDetector.cs index b8b89b4513f..fe70cac8b61 100644 --- a/src/EFCore.SqlServer/Storage/Internal/SqlServerTransientExceptionDetector.cs +++ b/src/EFCore.SqlServer/Storage/Internal/SqlServerTransientExceptionDetector.cs @@ -72,6 +72,10 @@ public static bool ShouldRetryOn([NotNull] Exception ex) // Resource ID: %d. The %s minimum guarantee is %d, maximum limit is %d and the current usage for the database is %d. // However, the server is currently too busy to support requests greater than %d for this database. // For more information, see http://go.microsoft.com/fwlink/?LinkId=267637. Otherwise, please try again. + case 10936: + // SQL Error Code: 10936 + // Resource ID : %d. The request limit for the elastic pool is %d and has been reached. + // See 'http://go.microsoft.com/fwlink/?LinkId=267637' for assistance. case 10929: // SQL Error Code: 10928 // Resource ID: %d. The %s limit for the database is %d and has been reached. For more information, From 266b2f3e93c92190f254e5df0f4f55d275e0cdfb Mon Sep 17 00:00:00 2001 From: Smit Patel Date: Fri, 15 May 2020 12:05:32 -0700 Subject: [PATCH 2/2] Update SqlServerTransientExceptionDetector.cs --- .../Internal/SqlServerTransientExceptionDetector.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/EFCore.SqlServer/Storage/Internal/SqlServerTransientExceptionDetector.cs b/src/EFCore.SqlServer/Storage/Internal/SqlServerTransientExceptionDetector.cs index fe70cac8b61..d1ad34250d5 100644 --- a/src/EFCore.SqlServer/Storage/Internal/SqlServerTransientExceptionDetector.cs +++ b/src/EFCore.SqlServer/Storage/Internal/SqlServerTransientExceptionDetector.cs @@ -68,14 +68,14 @@ public static bool ShouldRetryOn([NotNull] Exception ex) // SQL Error Code: 40197 // The service has encountered an error processing your request. Please try again. case 40197: + // SQL Error Code: 10936 + // Resource ID : %d. The request limit for the elastic pool is %d and has been reached. + // See 'http://go.microsoft.com/fwlink/?LinkId=267637' for assistance. + case 10936: // SQL Error Code: 10929 // Resource ID: %d. The %s minimum guarantee is %d, maximum limit is %d and the current usage for the database is %d. // However, the server is currently too busy to support requests greater than %d for this database. // For more information, see http://go.microsoft.com/fwlink/?LinkId=267637. Otherwise, please try again. - case 10936: - // SQL Error Code: 10936 - // Resource ID : %d. The request limit for the elastic pool is %d and has been reached. - // See 'http://go.microsoft.com/fwlink/?LinkId=267637' for assistance. case 10929: // SQL Error Code: 10928 // Resource ID: %d. The %s limit for the database is %d and has been reached. For more information,