ClickHouse/tests
Azat Khuzhin 9eeb856519 Fix INSERT into Distributed hung due to ProfileEvents
Right now RemoteInserter does not read ProfileEvents for INSERT, it
handles them only after sending the query or on finish.

But #37391 sends them for each INSERT block, but sometimes they can be
no ProfileEvents packet, since it sends only non-empty blocks.

And this adds too much complexity, and anyway ProfileEvents are useless
for the server, so let's send them only if the query is initial (i.e.
send by user).

Note, that it is okay to change the logic of sending ProfileEvents w/o
changing DBMS_TCP_PROTOCOL_VERSION, because there were no public
releases with the original patch included yet.

Fixes: #37391
Refs: #35075
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-06-22 15:41:15 +03:00
..
ci Merge pull request #38086 from ClickHouse/build-artifacts-upload 2022-06-20 11:49:04 +02:00
config Disable parameters for non direct executable user defined functions 2022-06-16 16:29:04 +02:00
fuzz
instructions
integration Apply black to runner script 2022-06-21 20:53:13 +02:00
jepsen.clickhouse-keeper Add perf tests to all jepsen runs 2022-06-15 12:11:23 +00:00
perf_drafts
performance Merge pull request #38052 from amosbird/join_regression_fix 2022-06-17 19:55:33 +02:00
queries Fix INSERT into Distributed hung due to ProfileEvents 2022-06-22 15:41:15 +03:00
.gitignore
clickhouse-test tests: add no-stress tag 2022-06-20 07:48:10 +03:00
CMakeLists.txt
msan_suppressions.txt
stress
tsan_suppressions.txt
ubsan_suppressions.txt