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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]