dotnet / dotnet/EntityFramework.Docs

Add a link to code to find current set of transient errors

Open
#3,921 0 comments 0 reactions 0 assignees View on GitHub
area-connection-resiliency
Dominant language
Mermaid
Stars
1.7k
Forks
2k
Avg merge
7d 23h
Merged PRs (30d)
16

Description

It will be good to document which errors the default strategy consider as transient.
In particular, I expected that Timeouts will be retried.
It is a reasonable expectation, e.g. In https://docs.microsoft.com/en-us/azure/azure-sql/database/troubleshoot-common-connectivity-issues?view=azuresql has
public bool IsTransient(Exception ex) //entLib 2013
if (ex is TimeoutException) { return true;

However it wasn’t correct - see https://github.com/dotnet/efcore/issues/27826.
Having explicit reference to list of transient errors will avoid the confusion.

The reference to transient errors list will be good also in https://docs.microsoft.com/en-au/ef/core/miscellaneous/connection-resiliency

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: fcac28c8-acc4-81b6-01f6-6ffad57c64a1
* Version Independent ID: 9fcb9d42-63cf-af0a-14b0-ac470130b089
* Content: [SqlServerDbContextOptionsBuilder.EnableRetryOnFailure Method (Microsoft.EntityFrameworkCore.Infrastructure)](https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.infrastructure.sqlserverdbcontextoptionsbuilder.enableretryonfailure?view=efcore-6.0)
* Content Source: [dotnet/xml/Microsoft.EntityFrameworkCore.Infrastructure/SqlServerDbContextOptionsBuilder.xml](https://github.com/dotnet/EntityFramework.ApiDocs/blob/live/dotnet/xml/Microsoft.EntityFrameworkCore.Infrastructure/SqlServerDbContextOptionsBuilder.xml)
* Product: **ef-core-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **avickers**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.