RestClient: on retry timeout add root exception (#25576)

This commit is contained in:
Jacques B 2018-12-09 15:03:48 +01:00 committed by Jason Tedor
parent 95bafb0593
commit bba9bb2cfa
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ public class RestClient implements Closeable {
long timeout = maxRetryTimeoutMillis - timeElapsedMillis;
if (timeout <= 0) {
IOException retryTimeoutException = new IOException(
"request retries exceeded max retry timeout [" + maxRetryTimeoutMillis + "]");
"request retries exceeded max retry timeout [" + maxRetryTimeoutMillis + "]", exception);
listener.onDefinitiveFailure(retryTimeoutException);
} else {
listener.trackFailure(exception);