[question] Retry on Timeout?
See original GitHub issueIs it possible to retry a call when a timeout occurs? At the moment I use TimeLimiter, CircuitBreaker, Retry and Bulkhead like this:
`ExecutorService executorService = Executors.newSingleThreadExecutor(); Supplier<Future<T>> futureSupplier = () -> executorService.submit(pCallable);
Callable<T> callable = TimeLimiter.decorateFutureSupplier(timeLimiter, futureSupplier); callable = CircuitBreaker.decorateCallable(circuitBreaker, callable); callable = Retry.decorateCallable(retry, callable); callable = Bulkhead.decorateCallable(bulkhead, callable);
return Try.ofCallable(callable).get();`
When a timeout occurs the execution stops immediately and there is no retry. Or is the retry mechanism only for exceptions within the timeout duration?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Azure datafactory retry and timeout - Microsoft Q&A
Timeout property mentions the duration of time the pipeline waits for the activities to finish. Once the timeout duration is reached, pipeline ...
Read more >How to retry blocking IO Action when timeout? - Stack Overflow
In my case: I have a number of retries and let's say I want to perform an IO action with a timeout. How...
Read more >Question: Timeout and Retry settings? - Boomi Community
Hi,. Can I set up a retry count , retry intreval and a timeout for my Boomi SOAP Client connector?
Read more >Couchbase.Core.Retry.BestEffortRetryStrategy Timeout Error
Hi, We seem to be getting intermittent timeout errors when using SDK 3.2.8 for KV Gets (ICouchbaseCollection.GetAsync), but aren't sure if ...
Read more >Timeouts, retries and backoff with jitter - Amazon AWS
To avoid this problem, we implement our clients to use backoff. This increases the time between subsequent retries, which keeps the load on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
But there are also methods to decorate an CompletionStage (CompletableFuture)
Btw. in the meantime you can use
I will also add a
retry.executeCheckedSupplier
method to reduce the overhead.