Skip to content

Commit 7a5668f

Browse files
Timsheljasontedor
authored andcommitted
RestClient: on retry timeout add root exception (#25576)
1 parent f391fd3 commit 7a5668f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/rest/src/main/java/org/elasticsearch/client/RestClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ private void retryIfPossible(Exception exception) {
577577
long timeout = maxRetryTimeoutMillis - timeElapsedMillis;
578578
if (timeout <= 0) {
579579
IOException retryTimeoutException = new IOException(
580-
"request retries exceeded max retry timeout [" + maxRetryTimeoutMillis + "]");
580+
"request retries exceeded max retry timeout [" + maxRetryTimeoutMillis + "]", exception);
581581
listener.onDefinitiveFailure(retryTimeoutException);
582582
} else {
583583
listener.trackFailure(exception);

0 commit comments

Comments
 (0)