diff --git a/dbms/tests/queries/0_stateless/00941_system_columns_race_condition.sh b/dbms/tests/queries/0_stateless/00941_system_columns_race_condition.sh index 3d668e61067..afc9dd28083 100755 --- a/dbms/tests/queries/0_stateless/00941_system_columns_race_condition.sh +++ b/dbms/tests/queries/0_stateless/00941_system_columns_race_condition.sh @@ -12,7 +12,7 @@ $CLICKHOUSE_CLIENT -q "CREATE TABLE alter_table (a UInt8, b Int16, c Float32, d function thread1() { - while true; do $CLICKHOUSE_CLIENT --query "SELECT * FROM system.columns FORMAT Null"; done + while true; do $CLICKHOUSE_CLIENT --query "SELECT name FROM system.columns UNION ALL SELECT name FROM system.columns FORMAT Null"; done } function thread2() @@ -24,8 +24,14 @@ function thread2() export -f thread1; export -f thread2; -timeout 5 bash -c thread1 & -timeout 5 bash -c thread2 & +timeout 5 bash -c thread1 > /dev/null & +timeout 5 bash -c thread1 > /dev/null & +timeout 5 bash -c thread1 > /dev/null & +timeout 5 bash -c thread1 > /dev/null & +timeout 5 bash -c thread2 > /dev/null & +timeout 5 bash -c thread2 > /dev/null & +timeout 5 bash -c thread2 > /dev/null & +timeout 5 bash -c thread2 > /dev/null & wait