RestClient: on retry timeout add root exception (#25576)
This commit is contained in:
parent
95bafb0593
commit
bba9bb2cfa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue