Allow to use bigger timeouts for zookeeper#85008
Conversation
|
Workflow [PR], commit [e902388] Summary: ❌
|
Should the value be |
The last is correct, the value in config accept ms, I put |
|
We cannot do this because protocol defines timeout as int32 and that's what we will write and read in handshake. |
Can't change the type to Int64
https://github.com/ClickHouse/ClickHouse/blob/master/src/Common/ZooKeeper/ZooKeeperImpl.cpp
Thanks, then, let's do it another way, @antonio2368 PTAL |
antonio2368
left a comment
There was a problem hiding this comment.
This looks good
Always some issues with Poco::Timespan 😞
7208987 to
7ce849e
Compare
I am using bigger timeouts for development (3600 seconds) to avoid
disconnects in case of attaching with debugger, but this may trigger UB
due to overflow:
src/Common/ZooKeeper/ZooKeeperImpl.cpp:556:68: runtime error: signed integer overflow: 3600000 * 1000 cannot be represented in type 'int'
43d9f05
I am using bigger timeouts for development (3600 seconds) to avoid disconnects in case of attaching with debugger, but this may trigger UB due to overflow:
Changelog category (leave one):