We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d7e3ed commit 61923cdCopy full SHA for 61923cd
1 file changed
modules/core/src/main/java/org/apache/ignite/internal/util/ViewUtils.java
@@ -26,6 +26,7 @@
26
import java.lang.invoke.MethodType;
27
import java.util.Collection;
28
import java.util.Objects;
29
+import java.util.concurrent.CancellationException;
30
import java.util.concurrent.CompletableFuture;
31
import java.util.concurrent.ExecutionException;
32
import java.util.function.Function;
@@ -52,7 +53,7 @@ public static <T> T sync(CompletableFuture<T> fut) {
52
53
Thread.currentThread().interrupt(); // Restore interrupt flag.
54
55
throw sneakyThrow(ensurePublicException(e));
- } catch (ExecutionException e) {
56
+ } catch (ExecutionException | CancellationException e) {
57
Throwable cause = unwrapCause(e);
58
59
throw sneakyThrow(ensurePublicException(cause));
0 commit comments