Skip to content

Commit c6876ae

Browse files
committed
tests: fix flaky 02350_views_max_insert_threads
According to the logs, stateless tests have concurrency control enabled, and even --no-parallel not always helps to acquire 10 threads for the query execution. The fix is to disable concurrency control for the insert query, to allow always plan max_threads for it.
1 parent d8d648f commit c6876ae

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/queries/0_stateless/02350_views_max_insert_threads.sql

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ drop table if exists t_mv;
77
create table t (a UInt64) Engine = Null;
88
create materialized view t_mv Engine = Null AS select now() as ts, max(a) from t group by ts;
99

10-
insert into t select * from numbers_mt(10e6) settings max_threads = 10, max_insert_threads=10, max_block_size=100000, parallel_view_processing=1;
10+
insert into t select * from numbers_mt(10e6)
11+
settings max_threads=10,
12+
max_insert_threads=10,
13+
max_block_size=100000,
14+
parallel_view_processing=1,
15+
use_concurrency_control=0;
16+
1117
system flush logs query_log;
1218

1319
select peak_threads_usage>=10 from system.query_log where

0 commit comments

Comments
 (0)