vesoft-inc / nebula-java

Client API and data importer of Nebula Graph in Java
Apache License 2.0
164 stars 121 forks source link

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

Closed soul-gin closed 1 year ago

soul-gin commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 😊