Questions tagged [transient-failure]

25 questions
14
votes
1 answer

Polly timeout policy clarification

I am trying to get the timeout policy to work correctly. I have the following requirements while integrating an api. Create an http request to invoke endpoint1 and pass the transactionID and capture the result if the http request does not receive…
Lorenzo
  • 29,081
  • 49
  • 125
  • 222
3
votes
0 answers

How to define a retry policy for transient errors when publishing messages to RabbitMQ?

I'm using the RabbitMQ.Client nuget package to publish messages to rabbitmq from a .NET core 3.1 application. We are using the 5.1.0 version of the library. We want to improve the resiliency of our application, so we are exploring the possibility to…
Enrico Massone
  • 6,464
  • 1
  • 28
  • 56
3
votes
2 answers

Transient Errors using MySQL with .NET 5/EF

My IT guy just updated our MySQL database to a new cluster, and now I am getting transient errors like these: An exception has been raised that is likely due to a transient failure. Consider enabling transient error resiliency by adding…
CTBrewski
  • 313
  • 4
  • 7
3
votes
1 answer

Using Npgsql EnableRetryOnFailure - is there any visibility / logging when a retry occurs?

I'm using EnableRetryOnFailure in a .Net core EF application and have added logic as per https://www.npgsql.org/efcore/misc/other.html. I'd like to be able to tell when/if these events happen as a confirmation that it's working, and not just the…
Reuven Trabin
  • 451
  • 7
  • 18
2
votes
2 answers

Polly fallback action did not throw the specified exception. What happened?

Given this code that tries to call AuthenticationManager.Authenticate() for 10 times, and then throws a CustomException after 10 failed attempts: string res = Policy .Handle() // Handles any exception .OrResult(result =>…
terrible-coder
  • 323
  • 2
  • 9
  • 18
2
votes
1 answer

Transient error handling for Azure MSI authentication

Are there errors that Managed Service Identity (MSI) authentication that are transient and worthwhile retrying? Reading through the implementation I can see HttpRequestException and Exception are absorbed by the framework and rethrown as…
2
votes
1 answer

Unable to consistently join meetings in microsoft teams "Oh dear! your call has dropped."

I spent weeks researching the issue where i could open teams but i could not join meetings. i could do ad-hoc calls with other team members but the meetings would drop within 5-10 seconds with the error message "Oh dear! Your call has dropped.…
Justin
  • 1,303
  • 15
  • 30
2
votes
1 answer

Transient Fault Retry logic best practices

Friends, I have a question about implementing a simple retry policy around the execution of the SQL command. My question is: should the retry loop encapsulate the construction of the connection and transaction, or should it live inside the…
Vic F
  • 1,143
  • 1
  • 11
  • 26
1
vote
0 answers

Linux kernel safety considerations

does the Linux kernel incorporate some mechanism to detect a malfunction at some CPU at the SMP implementations? If, for example, some core at multi-core platforms get stuck or blocked due to an endless loop after disabling the interrupts or if some…
micon
  • 21
  • 1
1
vote
1 answer

Implementing connection retry policy on failure to connect with database

I have my database on cloud i.e Azure so sometimes I get network related error like this: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify…
I Love Stackoverflow
  • 6,738
  • 20
  • 97
  • 216
1
vote
0 answers

Azure SQL: provider: TCP Provider, error: 0 - The semaphore timeout period has expired

It's similar to this question, but it contains no fix: TCP Provider: The semaphore timeout period has expired I am using the enterprise lib transient fault handling (v 6.x) with a retry policy. I have used it for years and this error is a new one.…
JP Hellemons
  • 5,977
  • 11
  • 63
  • 128
0
votes
0 answers

Transient error "Login failed for user '[UserName]'" MS SQL Server

We have been getting "Login failed for user '[UserName]'" as a transient error happening randomly for all our applications that connect to our on-premise SQL Server Database. Here is a few points to help narrow it down: The error is transient and…
0
votes
0 answers

Azure SQL Database - Transient Fault Handling doesn't work

I tried to use SQL Azure Transient fault handling, but it doesn't seem to work. My Web Service still throws a transient error. Here is my code: public int ExecuteSqlCmd(string sql, object[] parameters) { return (new…
Sam
  • 1,826
  • 26
  • 58
0
votes
1 answer

How to identify transient errors in NET Standard 2.1 with MySql.Data.MySqlClient.MySqlException?

I'm writing my app with NET Standard 2.1 and MySql (NuGet pack MySql.Data). The MySqlException doesn't have the property IsTransient so I can't recognize if the exception is temporary. How can I manage this? Is there a list of error code that are…
0
votes
1 answer

Entity framework transient failure and command timeout

I have some sporadic transient errors when connecting from my docker container to the hosting machine database. For this reason, I configure my DB context to retry on failure. This solved the problem partially because the client application still…
1
2