[ https://issues.apache.org/jira/browse/IGNITE-25052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Pereslegin updated IGNITE-25052: -------------------------------------- Description: Currently client resource (ResultSet) is cleared in two cases 1. User explicitly call {{close()}} on ResultSet. 2. After fetching the last page. At the same time, javadoc of {{CancelHandle#cancel()}} contains the following statement {noformat} @return A future that will be completed 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). was: Currently client resource (ResultSet) is cleared in two cases 1. User explicitly call {{close()}} on ResultSet. 2. After fetching the 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). > 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 > Priority: Major > Labels: ignite-3 > > Currently client resource (ResultSet) is cleared in two cases > 1. User explicitly call {{close()}} on ResultSet. > 2. After fetching the last page. > At the same time, javadoc of {{CancelHandle#cancel()}} contains the following > statement > {noformat} > @return A future that will be completed 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)