[ 
https://issues.apache.org/jira/browse/IOTDB-5142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17644596#comment-17644596
 ] 

Xingyu Liu commented on IOTDB-5142:
-----------------------------------

关于openSession传过来的timeZoneId为空的问题,可以尝试一下解决方案:

在创建session之后,首先调用Open接口。此处第一个参数false表示不启用RPC压缩,第二个参数为以毫秒为单位的超时时间,设置为0表示无超时限制。

比如:
{code:java}
session := client.NewSession(config)
session.Open(false, 0) {code}
这是因为,在Open函数中,会自动执行SetTimeZone。并且,如果检查到配置中的TimeZone为空串,会自动将其设置为默认的时区。

> go-client connection reset problem
> ----------------------------------
>
>                 Key: IOTDB-5142
>                 URL: https://issues.apache.org/jira/browse/IOTDB-5142
>             Project: Apache IoTDB
>          Issue Type: Bug
>          Components: Client/Others
>            Reporter: Xingyu Liu
>            Assignee: Xingyu Liu
>            Priority: Major
>         Attachments: image-2022-12-08-11-07-55-398.png, 
> image-2022-12-08-11-09-00-848.png, image-2022-12-08-11-09-05-286.png
>
>
> 现在有台服务器大量报连接重置
>  !image-2022-12-08-11-07-55-398.png! 
>  !image-2022-12-08-11-09-00-848.png! 
>  !image-2022-12-08-11-09-05-286.png! 
> 问题:go client会在每天0点左右重连,但是其中zoneId参数为空,前几天是0点左右,刚发现了9点也有一条,看来和时间无关



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to