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

set default check the connection to fix the error like 'IOErrorException: Cannot write to null outputStream' #401

Closed
vchangpengfei opened this issue Dec 17, 2021 · 0 comments · Fixed by #503
Labels
type/enhancement Type: make the code neat or more efficient

Comments

@vchangpengfei
Copy link
Contributor

vchangpengfei commented Dec 17, 2021

The BaseObjectPoolConfig class does not check connection by default.
When a connection goes wrong, NebulaPool class may fetch a corrupted connection, causing an exception called "IOErrorException: Cannot write to null outputStream"

@vchangpengfei vchangpengfei changed the title set checking connection default open set checking connection default open to fix the error like 'IOErrorException: Cannot write to null outputStream' Dec 17, 2021
@vchangpengfei vchangpengfei changed the title set checking connection default open to fix the error like 'IOErrorException: Cannot write to null outputStream' set default check the connection to fix the error like 'IOErrorException: Cannot write to null outputStream' Dec 17, 2021
vchangpengfei added a commit to vchangpengfei/nebula-java that referenced this issue Jun 1, 2022
@Sophie-Xie Sophie-Xie added the type/enhancement Type: make the code neat or more efficient label Nov 30, 2022
vchangpengfei added a commit to vchangpengfei/nebula-java that referenced this issue Feb 23, 2023
Nicole00 pushed a commit that referenced this issue Feb 24, 2023
Nicole00 added a commit that referenced this issue Mar 30, 2023
* check connection by default #401 (#456)

* enhancement:support more type value as parameter in session.value2Nvalue (#511)

* enhancement:support more type value as parameter in session.value2Nvalue

* code style for #511

* code style for #511

* Add maven wrapper (#513)

Co-authored-by: Will Droste <will.droste@brinqa.com>

* recreate session for both session error and connection exception

* fix style check

* sleep for docker restart

---------

Co-authored-by: vchangpengfei <37330503+vchangpengfei@users.noreply.github.com>
Co-authored-by: 大叶 <CorvusY@foxmail.com>
Co-authored-by: Will Droste <will.droste@brinqa.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants