When using iotDB, in the case of multithreading, the Session will be used for a period of time, and the connection will be lost . (golang语言, 在使用iotDB时,多线程情况下,Session使用超过一定时间后会报错失去连接) #3709
Answered
by
qiaojialin
mygithubcjm
asked this question in
Q&A
-
1、程序初始化时,会初始化iotDB连接,并将得到的Session 使用公共变量存储 3、checkError方法中如果发现错误会中断协程,然后捕获错误,并打印,之后再重新创建Session 测试用例: |
Beta Was this translation helpful? Give feedback.
Answered by
qiaojialin
Aug 10, 2021
Replies: 1 comment 2 replies
-
Hi, is the Session used by multi-threads concurrently? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
HTHou
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, is the Session used by multi-threads concurrently?