in src/main/java/com/googlesource/gerrit/plugins/its/jira/JiraItsFacade.java [126:140]
private <P> P execute(Callable<P> function) throws IOException {
int attempt = 0;
while (true) {
try {
return function.call();
} catch (Exception ex) {
if (isRecoverable(ex) && ++attempt < MAX_ATTEMPTS) {
log.debug("Call failed - retrying, attempt {} of {}", attempt, MAX_ATTEMPTS);
continue;
}
if (ex instanceof IOException) throw ((IOException) ex);
throw new IOException(ex);
}
}
}