Skip to content

Commit bba9bb2

Browse files
Timsheljasontedor
authored andcommitted
RestClient: on retry timeout add root exception (#25576)
1 parent 95bafb0 commit bba9bb2

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
@@ -338,7 +338,7 @@ private void retryIfPossible(Exception exception) {
338338
long timeout = maxRetryTimeoutMillis - timeElapsedMillis;
339339
if (timeout <= 0) {
340340
IOException retryTimeoutException = new IOException(
341-
"request retries exceeded max retry timeout [" + maxRetryTimeoutMillis + "]");
341+
"request retries exceeded max retry timeout [" + maxRetryTimeoutMillis + "]", exception);
342342
listener.onDefinitiveFailure(retryTimeoutException);
343343
} else {
344344
listener.trackFailure(exception);

0 commit comments

Comments
 (0)