You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2022/07/28 17:53:46 UTC

[GitHub] [ignite-3] isapego commented on a diff in pull request #958: IGNITE-17433 Fix SQL exceptions when cursor is closed or has no more pages

isapego commented on code in PR #958:
URL: https://github.com/apache/ignite-3/pull/958#discussion_r932522771


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/api/SessionImpl.java:
##########
@@ -163,7 +162,7 @@ public CompletableFuture<AsyncResultSet> executeAsync(@Nullable Transaction tran
             );
 
             result.whenComplete((rs, th) -> {
-                if (th instanceof SessionNotFoundException) {
+                if (th instanceof IgniteException && ((IgniteException) th).code() == SESSION_NOT_FOUND_ERR) {

Review Comment:
   We may want to have an utility method for this in future I believe.



-- 
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-unsubscribe@ignite.apache.org

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