We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30bcc75 commit 55b212cCopy full SHA for 55b212c
client/rest/src/main/java/org/elasticsearch/client/RestClient.java
@@ -574,7 +574,7 @@ private static boolean isRetryStatus(int statusCode) {
574
}
575
576
private static void addSuppressedException(Exception suppressedException, Exception currentException) {
577
- if (suppressedException != null) {
+ if (suppressedException != null && suppressedException != currentException) {
578
currentException.addSuppressed(suppressedException);
579
580
docs/changelog/83568.yaml
@@ -0,0 +1,6 @@
1
+pr: 83568
2
+summary: Fix for self-suppression in rest client
3
+area: Client
4
+type: bug
5
+issues:
6
+ - 42223
0 commit comments