mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Try fix tests.
This commit is contained in:
parent
93ae00bd0d
commit
f6bdd35943
@ -300,6 +300,8 @@ void TCPHandler::runImpl()
|
||||
/// Processing Query
|
||||
state.io = executeQuery(state.query, query_context, false, state.stage, may_have_embedded_data);
|
||||
|
||||
unknown_packet_in_send_data = query_context->getSettingsRef().unknown_packet_in_send_data;
|
||||
|
||||
after_check_cancelled.restart();
|
||||
after_send_progress.restart();
|
||||
|
||||
@ -1464,11 +1466,10 @@ void TCPHandler::sendData(const Block & block)
|
||||
try
|
||||
{
|
||||
/// For testing hedged requests
|
||||
const Settings & settings = query_context->getSettingsRef();
|
||||
if (settings.unknown_packet_in_send_data)
|
||||
if (unknown_packet_in_send_data)
|
||||
{
|
||||
--const_cast<SettingFieldUInt64 &>(settings.unknown_packet_in_send_data).value;
|
||||
if (settings.unknown_packet_in_send_data == 0)
|
||||
--unknown_packet_in_send_data;
|
||||
if (unknown_packet_in_send_data == 0)
|
||||
writeVarUInt(UInt64(-1), *out);
|
||||
}
|
||||
|
||||
|
@ -135,6 +135,8 @@ private:
|
||||
ContextPtr connection_context;
|
||||
ContextPtr query_context;
|
||||
|
||||
size_t unknown_packet_in_send_data = 0;
|
||||
|
||||
/// Streams for reading/writing from/to client connection socket.
|
||||
std::shared_ptr<ReadBuffer> in;
|
||||
std::shared_ptr<WriteBuffer> out;
|
||||
|
Loading…
Reference in New Issue
Block a user