Skip to content
Permalink
Browse files
GIRAPH-1219
closes #102
  • Loading branch information
dlogothetis committed May 14, 2019
1 parent e827a56 commit 12b2d7430f51b3e0195e5a7320d27429c1b39edf
Showing 1 changed file with 11 additions and 3 deletions.
@@ -201,14 +201,22 @@ private void executeWithRetry(Runnable runnable, int numRetries) {
retry(runnable);
break; // If the retry succeeded, we simply break from the loop

// CHECKSTYLE: stop IllegalCatch
} catch (Exception e) {
// CHECKSTYLE: resume IllegalCatch
} catch (RuntimeTTransportException | RejectedExecutionException e) {
// If a RuntimeTTTransportException happened, then we will retry
if (LOG.isInfoEnabled()) {
LOG.info("Exception occurred while talking to " +
"JobProgressTracker server after retry " + i +
" of " + numRetries, e);
}
// CHECKSTYLE: stop IllegalCatch
} catch (Exception e) {
// CHECKSTYLE: resume IllegalCatch
// If any other exception happened (e.g. application-specific),
// then we stop.
LOG.info("Exception occurred while talking to " +
"JobProgressTracker server after retry " + i +
" of " + numRetries + ", giving up", e);
break;
}
}
// CHECKSTYLE: stop IllegalCatch

0 comments on commit 12b2d74

Please sign in to comment.