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 5b73011 commit d69b5feCopy full SHA for d69b5fe
libs/core/src/main/java/org/elasticsearch/core/Releasables.java
@@ -88,7 +88,7 @@ public static void closeWhileHandlingException(Releasable... releasables) {
88
}
89
90
private static RuntimeException useOrSuppress(RuntimeException firstException, RuntimeException e) {
91
- if (firstException == null) {
+ if (firstException == null || firstException == e) {
92
return e;
93
94
firstException.addSuppressed(e);
0 commit comments