Comments (9)
请问可以提供更多信息吗?例如:
- 服务端版本
- go客户端版本(commit id)
- 能稳定复现问题的go客户端代码片段
- 服务端配置
- 其他可能有帮助的信息
from iotdb-client-go.
- 服务端版本
1.0.0 - go客户端版本(commit id)
1.0.0 - 能稳定复现问题的go客户端代码片段
- 服务端配置
默认 - 其他可能有帮助的信息
服务器端运行环境为 windows
from iotdb-client-go.
可以提供一下iotdb端的日志吗
from iotdb-client-go.
我写了一个最小复现的代码,现在来看应该是 session 不支持并发。
func main() {
session := client.NewSession(&client.Config{
Host: "127.0.0.1",
Port: "6667",
UserName: "root",
Password: "root",
})
if err := session.Open(false, 0); err != nil {
panic(err)
}
timeout := int64(20000)
go func() {
_, err := session.ExecuteQueryStatement("select last v1 as value from root.ln.wf02.wt02", &timeout)
if err != nil {
panic(err)
}
}()
go func() {
_, err := session.ExecuteQueryStatement("select last hardware as value from root.ln.wf02.wt02", &timeout)
if err != nil {
panic(err)
}
}()
time.Sleep(time.Second * 200)
}
from iotdb-client-go.
@HTHou iotdb server 端报错如下:
from iotdb-client-go.
我写了一个最小复现的代码,现在来看应该是 session 不支持并发。
func main() { session := client.NewSession(&client.Config{ Host: "127.0.0.1", Port: "6667", UserName: "root", Password: "root", }) if err := session.Open(false, 0); err != nil { panic(err) } timeout := int64(20000) go func() { _, err := session.ExecuteQueryStatement("select last v1 as value from root.ln.wf02.wt02", &timeout) if err != nil { panic(err) } }() go func() { _, err := session.ExecuteQueryStatement("select last hardware as value from root.ln.wf02.wt02", &timeout) if err != nil { panic(err) } }() time.Sleep(time.Second * 200) }
是的 单个session不能并发使用,如果有并发,需要使用多个session。
from iotdb-client-go.
驱动包里没有考虑提供一个可以使用的 session pool 吗?需要业务侧自己实现一个是吧?
from iotdb-client-go.
#75 有开源贡献者正在贡献session pool 的相关代码,可以等待一下新版本发布。
from iotdb-client-go.
#75 有开源贡献者正在贡献session pool 的相关代码,可以等待一下新版本发布。
好的,感谢回复
from iotdb-client-go.
Related Issues (8)
- go compile error HOT 4
- assignment mismatch: 2 variables but thrift.NewTSocketConf returns 1 value HOT 3
- [BUG]Parameter ‘connectionTimeoutInMs’ mismatch with actual usage in function 'Open' HOT 2
- cannot get data when using some features implemented in iotdb session HOT 1
- 使用session pool查询概率性出现StatementId:xxxx doesn't exist in this session xxxx问题 HOT 1
- 写入丢包 HOT 7
- 数据能否自动完成类型转换? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iotdb-client-go.