Questions tagged [retrypolicy]

Provides the base implementation of the retry mechanism for unreliable actions and transient conditions when accessing Sql Azure.

101 questions
10
votes
2 answers

Volley request retry policy doesn't consider timeout

I've set 1500 as initialTimeoutMs in DefaultRetryPolicy as below but it doesn't consider the timeout: request.setRetryPolicy(new DefaultRetryPolicy(1500 , DefaultRetryPolicy.DEFAULT_MAX_RETRIES ,…
Alireza Noorali
  • 3,129
  • 2
  • 33
  • 80
5
votes
1 answer

Spring batch: Retry job if does not complete in particular time

I am working on a Spring batch application where I have used RetryTemplate with SimpleRetryPolicy. In this application, ItemProcessor usually takes 30-35 mins to complete a particular task. But sometimes, it takes from than 2hrs to complete that…
5
votes
1 answer

How to combine Retryable and CircuitBreaker together in Spring?

Spring's @Retryable annotation will retry three times (default) and fallback to the @Recovery method. @CircuitBreaker however, will retry once and fall back when the state is closed. I want to combine these two: when the circuit breaker state is…
Zebing Lin
  • 371
  • 4
  • 6
5
votes
0 answers

Retry on 408 Timeout from Azure Table Storage service

We are using Azure Table Storage and are getting occasional 408 Timeouts when performing an InsertOrMerge operation. In this case we would like to retry, but it appears that the retry policy is not being followed for these errors. This is a class we…
08Dc91wk
  • 4,254
  • 8
  • 34
  • 67
5
votes
0 answers

Spring Batch: Retry chunk in smaller chunks vs single item processing

I have an application that uses Spring Batch 3.0.6. The Spring Batch job uses chunk processing. The commit interval is set to 100 and the retry limit is set to 5. The writer writes a data chunk (of 100 records) to another application (via TCP)…
4
votes
1 answer

Azure Service Bus: transient errors (exceptions) received through the message pump with built-in retry policy. Why?

I've been reading on the Event-Driven Message Programming Model introduced in April 2013, the OnMessageOptions.ExceptionReceived Event, the built-in RetryPolicy (May 2013, RetryPolicy.Default), The Transient Fault Handling Application Block (2011)…
maxbeaudoin
  • 6,546
  • 5
  • 38
  • 53
3
votes
1 answer

PubSub deadlettering and retry policy not working as expected

As seen below, I have a subscription set to retry 5 times and them move the message to a deadlettering queue. I also have the retry policy set to exponentially back off. This is however not happening. All the config was done using the web console…
3
votes
1 answer

Polly Retry always throws System.AggregateException instead of custom exception

As the title says, I created a retry mechanism using Polly. The problem is that I always get a System.AggregateException instead of my own custom exception. I will add the code here. This is the polly static class which I created: public static…
cozmin-calin
  • 421
  • 2
  • 6
  • 19
3
votes
1 answer

Retry policy in CompletionService

I need to configure retry policy for calling an API via ExecutorCompletionService. Sample Code: public void func() throws Exception{ ExecutorService executorService = Executors.newFixedThreadPool(5); CompletionService
3
votes
1 answer

Alamofire: How to retry request only once

I'm adopting RequestAdapter and RequestRetrier to add refresh token behavior automatically to my request. The problems that retry occurs indefinitely without control. I have this code: class AuthHandler: RequestAdapter, RequestRetrier { func…
mhergon
  • 1,688
  • 1
  • 18
  • 39
3
votes
4 answers

Should I ever throw a retriable exception from my service

My service is DService and I am fourth link in the chain of services i.e. the call flow is Online User -> AService -> BService -> CService -> DService -> EService. When I invoke EService from DService, it can throw retriable exception like…
Harish
  • 7,589
  • 10
  • 36
  • 47
3
votes
2 answers

Azure Queue Storage Proper Call Pattern in 2015?

What is the proper call/code pattern to write to Azure Queue Storage in a performant way? Right now, the pseudo-code is Create static class with StorageCredentials and CloudStorage account properies. At application startup, read values from config…
Snowy
  • 5,942
  • 19
  • 65
  • 119
2
votes
1 answer

Polly "retry" throws TaskCanceledException on first failure retry attempt

I have implemented Polly in it's own "retry" HttpClient DelegateHandler in a dll written to .NET Standard 2.0. I have the Polly v7.2.3 package. My HttpClient is running separate from an HttpClientFactory since only one instance will ever exist…
Jeff Lehmer
  • 241
  • 1
  • 5
  • 17
2
votes
5 answers

How to deal with 100 seconds timeouts while using Poly retry policy

I'm using retry policy in .net core application and am getting timeouts after exceeding 100 seconds period. Might I use Poly in some incorrect way or it's by design and only timeout period increase might help? Here is the way I use Poly: Startup: //…
2
votes
3 answers

Is python grpc client support retry?

I'using grpc in Python, and I found that the communication between two node accidentally encountering StatusCode.UNAVAILABLE. I found a solution which said UNAVAILABLE is a retry-able error, we should…
lulijun
  • 415
  • 3
  • 22
1
2 3 4 5 6 7