tests: attempt to fix 02340_parts_refcnt_mergetree flakiness

I'm not sure that this was the case, but I don't see any other reasons
for now.

I've also looked at the logs and trace_log, and did not noticed anything
interesting.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2024-05-13 10:21:03 +02:00
parent 3d76de3fec
commit 85998672f0

View File

@ -9,7 +9,11 @@ function check_refcnt_for_table()
{
local table=$1 && shift
$CLICKHOUSE_CLIENT -q "system stop merges $table"
$CLICKHOUSE_CLIENT -nm -q "
system stop merges $table;
-- cleanup thread may hold the parts lock
system stop cleanup $table;
"
$CLICKHOUSE_CLIENT --insert_keeper_fault_injection_probability=0 -q "insert into $table select number, number%4 from numbers(200)"
local query_id