Fixed tests

This commit is contained in:
Maksim Kita 2021-10-12 18:41:38 +03:00
parent 201523f4e6
commit 3d2e1a24d9

View File

@ -314,7 +314,12 @@ void KeeperTCPHandler::runImpl()
auto response_fd = poll_wrapper->getResponseFD();
auto response_callback = [this, response_fd] (const Coordination::ZooKeeperResponsePtr & response)
{
[[maybe_unused]] bool push_result = responses->push(response);
if (!responses->push(response))
throw Exception(ErrorCodes::SYSTEM_ERROR,
"Could not push response with xid {} and zxid {}",
response->xid,
response->zxid);
UInt8 single_byte = 1;
[[maybe_unused]] int result = write(response_fd, &single_byte, sizeof(single_byte));
};