public static <T> T retryS3Operation(Task<T> f) throws Exception
  {
    final int maxTries = 10;
    return RetryUtils.retry(f, S3RETRY, maxTries);
  }
public static < T > T retryS3Operation ( Task < T > f ) throws Exception { final int maxTries = 10 ; return RetryUtils . retry ( f , S3RETRY , maxTries ) ; }
Retries S3 operations that fail due to io-related exceptions. Service-level exceptions (access denied, file not
found, etc) are not retried.