Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whether the session can be released when the resultSet is null #509

Closed
soul-gin opened this issue Feb 8, 2023 · 2 comments
Closed

Whether the session can be released when the resultSet is null #509

soul-gin opened this issue Feb 8, 2023 · 2 comments

Comments

@soul-gin
Copy link

soul-gin commented Feb 8, 2023

When resultSet is null, there may be a network problem. If the corresponding session is not released, subsequent queries will be affected.
private boolean isSessionError(ResultSet resultSet) { return resultSet != null && (resultSet.getErrorCode() == ErrorCode.E_SESSION_INVALID.getValue() || resultSet.getErrorCode() == ErrorCode.E_SESSION_NOT_FOUND.getValue() || resultSet.getErrorCode() == ErrorCode.E_SESSION_TIMEOUT.getValue()); }

@Nicole00
Copy link
Contributor

When resultSet is null, there may be a network problem. If the corresponding session is not released, subsequent queries will be affected.

thanks for proposing this issue, could you please post the exception stack when your resultSet is null

@QingZ11
Copy link

QingZ11 commented Mar 31, 2023

I have noticed that the issue you created hasn’t been updated for nearly a month, so I have to close it for now. If you have any new updates, you are welcome to reopen this issue anytime.

Thanks a lot for your contribution anyway 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants