Pavel Pereslegin created IGNITE-25052:
-----------------------------------------
Summary: Thin 3.0. Sql. Cleanup resources when user cancels query.
Key: IGNITE-25052
URL: https://issues.apache.org/jira/browse/IGNITE-25052
Project: Ignite
Issue Type: Bug
Components: sql, thin client
Reporter: Pavel Pereslegin
Currently client resource (ResultSet) is cleared in two cases
1. User explicitly call {{close()}} on ResultSet.
2. After fetching last page.
At the same time, javadoc of {{CancelHandle#cancel()}} contains the following
statement
{noformat}
after the process has been terminated and the resources associated with that
process have been freed
{noformat}
It is necessary to implicitly clean up the client's resources when a request is
cancelled.
Note: need to look at what other cases it is worth doing automatic resource
cleaning (probably in the case of an error in ClientSqlCursorNextPageRequest).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)