AMashenkov commented on code in PR #2271:
URL: https://github.com/apache/ignite-3/pull/2271#discussion_r1254110934


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/api/SessionImpl.java:
##########
@@ -330,7 +329,13 @@ public Publisher<Long> executeBatchReactive(@Nullable 
Transaction transaction, S
     /** {@inheritDoc} */
     @Override
     public void close() {
-        await(closeAsync());
+        try {
+            closeAsync().toCompletableFuture().get();
+        } catch (ExecutionException e) {
+            throw new SqlException(RUNTIME_EXECUTION_ERR, e.getCause());

Review Comment:
   SqlException may rewrite code from cause.
   Is it done intentionally?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to