mirror of
https://github.com/google/nomulus
synced 2026-05-13 11:21:46 +00:00
Retry RDE report on SocketTimeoutException
It's likely that either 1) we should be doing this for more than a SocketTimeoutException - we probably want to do this in the case of a number of different transient failures 2) we don't want to do this at all because it happens in a background task that will get re-run anyway. In any case, this seems like the right fix and it addresses a problem we see occassionally. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=139935190
This commit is contained in:
@@ -93,8 +93,8 @@ public class Retrier implements Serializable {
|
||||
@SafeVarargs
|
||||
public final <V> V callWithRetry(
|
||||
Callable<V> callable,
|
||||
Class<? extends RuntimeException> retryableError,
|
||||
Class<? extends RuntimeException>... moreRetryableErrors) {
|
||||
Class<? extends Throwable> retryableError,
|
||||
Class<? extends Throwable>... moreRetryableErrors) {
|
||||
final Set<Class<?>> retryables =
|
||||
new ImmutableSet.Builder<Class<?>>().add(retryableError).add(moreRetryableErrors).build();
|
||||
return callWithRetry(callable, new Predicate<Throwable>() {
|
||||
|
||||
Reference in New Issue
Block a user