-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Cluster Scalability
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The RetryStrategy interface has been introduced as a standard interface for retryability. Since WithAutomaticRetry implement a retry mechanism, it should be able to work with the new RetryStrategy interface.
To do so, a new withRetryStrategy builder method that calls into until and withBackoffBetweenIterations. Like AsyncTry::withRetryStrategy, callers will be required to return RetryStrategy::Result<T> from their provided callable in order to use WithAutomaticRetry::withRetryStrategy.
A good example on how to use the retry strategies is in runWithRetryStrategy.
- depends on
-
SERVER-108329 Support passing a RetryStrategy to AsyncTry
-
- Open
-