We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95bafb0 commit bba9bb2Copy full SHA for bba9bb2
client/rest/src/main/java/org/elasticsearch/client/RestClient.java
@@ -338,7 +338,7 @@ private void retryIfPossible(Exception exception) {
338
long timeout = maxRetryTimeoutMillis - timeElapsedMillis;
339
if (timeout <= 0) {
340
IOException retryTimeoutException = new IOException(
341
- "request retries exceeded max retry timeout [" + maxRetryTimeoutMillis + "]");
+ "request retries exceeded max retry timeout [" + maxRetryTimeoutMillis + "]", exception);
342
listener.onDefinitiveFailure(retryTimeoutException);
343
} else {
344
listener.trackFailure(exception);
0 commit comments