mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Tweak error code in ZooKeeper library for correct expectations from the calling code [#CLICKHOUSE-3916]
This commit is contained in:
parent
9b358e037e
commit
eb165a0616
@ -1265,7 +1265,9 @@ void ZooKeeper::receiveEvent()
|
||||
if (!response)
|
||||
std::terminate();
|
||||
|
||||
response->error = ZMARSHALLINGERROR;
|
||||
/// In case we cannot read the response, we should indicate it as the error of that type
|
||||
/// when the user cannot assume whether the request was processed or not.
|
||||
response->error = ZCONNECTIONLOSS;
|
||||
if (request_info.callback)
|
||||
request_info.callback(*response);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user