You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "iotopo (via GitHub)" <gi...@apache.org> on 2023/02/10 05:27:52 UTC

[GitHub] [iotdb-client-go] iotopo opened a new issue, #74: 连续执行 2 次查询后报错

iotopo opened a new issue, #74:
URL: https://github.com/apache/iotdb-client-go/issues/74

   ![b422a51ac93a88ca11e1757f265ec8a](https://user-images.githubusercontent.com/89469406/218008355-f8873e1b-acfc-4525-85c8-c2b2481b5b78.png)
   如图所示


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@iotdb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb-client-go] iotopo closed issue #74: 连续执行 2 次查询后报错

Posted by "iotopo (via GitHub)" <gi...@apache.org>.
iotopo closed issue #74: 连续执行 2 次查询后报错
URL: https://github.com/apache/iotdb-client-go/issues/74


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb-client-go] HTHou commented on issue #74: 连续执行 2 次查询后报错

Posted by "HTHou (via GitHub)" <gi...@apache.org>.
HTHou commented on issue #74:
URL: https://github.com/apache/iotdb-client-go/issues/74#issuecomment-1432587457

   可以提供一下iotdb端的日志吗


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb-client-go] citrusreticulata commented on issue #74: 连续执行 2 次查询后报错

Posted by "citrusreticulata (via GitHub)" <gi...@apache.org>.
citrusreticulata commented on issue #74:
URL: https://github.com/apache/iotdb-client-go/issues/74#issuecomment-1432462886

   请问可以提供更多信息吗?例如:
   1. 服务端版本
   2. go客户端版本(commit id)
   3. 能稳定复现问题的go客户端代码片段
   4. 服务端配置
   5. 其他可能有帮助的信息


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb-client-go] iotopo commented on issue #74: 连续执行 2 次查询后报错

Posted by "iotopo (via GitHub)" <gi...@apache.org>.
iotopo commented on issue #74:
URL: https://github.com/apache/iotdb-client-go/issues/74#issuecomment-1432580582

   1. 服务端版本
   2. go客户端版本(commit id)
   3. 能稳定复现问题的go客户端代码片段
   4. 服务端配置
   5. 其他可能有帮助的信息


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb-client-go] iotopo commented on issue #74: 连续执行 2 次查询后报错

Posted by "iotopo (via GitHub)" <gi...@apache.org>.
iotopo commented on issue #74:
URL: https://github.com/apache/iotdb-client-go/issues/74#issuecomment-1432652340

   iotserver 端报错如下:
   ![image](https://user-images.githubusercontent.com/89469406/219299681-8f4a22e8-020d-4e87-a3fb-922d768142bc.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb-client-go] HTHou commented on issue #74: 连续执行 2 次查询后报错

Posted by "HTHou (via GitHub)" <gi...@apache.org>.
HTHou commented on issue #74:
URL: https://github.com/apache/iotdb-client-go/issues/74#issuecomment-1432840371

   > 我写了一个最小复现的代码,现在来看应该是 session 不支持并发。
   > 
   > ```go
   > 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。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb-client-go] iotopo commented on issue #74: 连续执行 2 次查询后报错

Posted by "iotopo (via GitHub)" <gi...@apache.org>.
iotopo commented on issue #74:
URL: https://github.com/apache/iotdb-client-go/issues/74#issuecomment-1433951439

   > #75 有开源贡献者正在贡献session pool 的相关代码,可以等待一下新版本发布。
   
   好的,感谢回复


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb-client-go] iotopo commented on issue #74: 连续执行 2 次查询后报错

Posted by "iotopo (via GitHub)" <gi...@apache.org>.
iotopo commented on issue #74:
URL: https://github.com/apache/iotdb-client-go/issues/74#issuecomment-1432651447

   我写了一个最小复现的代码,现在来看应该是 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)
   }
   `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb-client-go] iotopo commented on issue #74: 连续执行 2 次查询后报错

Posted by "iotopo (via GitHub)" <gi...@apache.org>.
iotopo commented on issue #74:
URL: https://github.com/apache/iotdb-client-go/issues/74#issuecomment-1432844741

   驱动包里没有考虑提供一个可以使用的 session pool 吗?需要业务侧自己实现一个是吧?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb-client-go] HTHou commented on issue #74: 连续执行 2 次查询后报错

Posted by "HTHou (via GitHub)" <gi...@apache.org>.
HTHou commented on issue #74:
URL: https://github.com/apache/iotdb-client-go/issues/74#issuecomment-1432849270

   https://github.com/apache/iotdb-client-go/pull/75 有开源贡献者正在贡献session pool 的相关代码,可以等待一下新版本发布。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org