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

Nebula3.6.0 连接提示会话已经关闭 #5970

Open
chenyuhu94 opened this issue Nov 8, 2024 · 0 comments
Open

Nebula3.6.0 连接提示会话已经关闭 #5970

chenyuhu94 opened this issue Nov 8, 2024 · 0 comments
Labels
affects/none PR/issue: this bug affects none version. severity/none Severity of bug type/bug Type: something is unexpected

Comments

@chenyuhu94
Copy link

我有3台Nebula 3.6.0集群部署,通过tar.gz安装,资源皆为16C32GB。

目前使用Java程序往Nebula中写读数,连接方式为Session Pool。 最近程序一直频繁在抛异常"The SessionPool has been closed."开了重试(reconnect)一样的报这个错,怀疑是程序问题连接被断开了,检查程序没有并调用pool.close方法,space和账号密码都是正常的,
查看sessions数量最高不到10,查看healthCheckSchedule(checkSession)没有正常运行,并且没有错误日志,只有重启服务重新初始化SessionPool才能解决。
请问下Nebula SessionPool是如何正确管理才能避免这种现象。
错误日志:
java.lang.RuntimeException: The SessionPool has been closed.\n\tat com.vesoft.nebula.client.graph.SessionPool.checkSessionPool(SessionPool.java:451)\n\tat com.vesoft.nebula.client.graph.SessionPool.execute(SessionPool.java:147)\n\tat com.lbx.szhzx.metadatamanagement.service.impl.NebulaGraphServiceImpl.updateParentTaskTag(NebulaGraphServiceImpl.java:539)\n\tat com.lbx.szhzx.metadatamanagement.service.impl.NebulaGraphServiceImpl$$FastClassBySpringCGLIB$$1987bec7.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n
配置如下:
maxSize: 30
minSize: 10
waitTime: 100
retryTimes: 3
intervalTime: 100
reconnect: true

@chenyuhu94 chenyuhu94 added the type/bug Type: something is unexpected label Nov 8, 2024
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. severity/none Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

1 participant