Skip to content

Commit

Permalink
IGNITE-20454 Let the caller decide what exception is matter.
Browse files Browse the repository at this point in the history
  • Loading branch information
xtern committed Oct 17, 2023
1 parent fd4f3eb commit 3c5ffd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ public CompletableFuture<Void> closeAsync() {
if (!closed) {
Throwable th = ex.get();

completePrefetchFuture(th);

if (th == null) {
th = new QueryCancelledException();
}
Expand All @@ -174,6 +172,8 @@ public CompletableFuture<Void> closeAsync() {
}
}, source::onError);

completePrefetchFuture(th);

closed = true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@
import static org.apache.ignite.internal.testframework.IgniteTestUtils.await;
import static org.apache.ignite.internal.testframework.IgniteTestUtils.waitForCondition;
import static org.apache.ignite.internal.testframework.matchers.CompletableFutureMatcher.willSucceedIn;
import static org.apache.ignite.lang.ErrorGroups.Common.NODE_LEFT_ERR;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.instanceOf;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down

0 comments on commit 3c5ffd7

Please sign in to comment.