mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
1ce9293e97
Found in [1]: 2021.03.12 23:32:58.897190 [ 436606 ] {97a08a8f-4630-44f8-ba18-a94c6fabbded} <Information> test_13.lc_empty_part_bug: Waiting mutation: mutation_3.txt ... 2021.03.12 23:32:58.900444 [ 374 ] {} <Debug> test_13.lc_empty_part_bug: Current max source part size for mutation is 0 but part size 1. Will not mutate part all_1_1_0_2. Max size depends not only on available space, but also on settings 'number_of_free_entries_in_pool_to_execute_mutation' and 'background_pool_size' ... Hang check: query: alter table lc_empty_part_bug modify column s LowCardinality(String); elapsed: 2156.396613506 [1]: https://clickhouse-test-reports.s3.yandex.net/21511/d7d9638ceb6bd702f34a88ee54f8f83197e90af5/stress_test_(address).html#fail1
25 lines
996 B
Bash
Executable File
25 lines
996 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
# shellcheck source=../shell_config.sh
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
# that test is failing on versions <= 19.11.12
|
|
|
|
${CLICKHOUSE_CLIENT} --multiquery --query="
|
|
DROP TABLE IF EXISTS lc_empty_part_bug;
|
|
create table lc_empty_part_bug (id UInt64, s String) Engine=MergeTree ORDER BY id SETTINGS number_of_free_entries_in_pool_to_execute_mutation=0;
|
|
insert into lc_empty_part_bug select number as id, toString(rand()) from numbers(100);
|
|
alter table lc_empty_part_bug delete where id < 100;
|
|
" --mutations_sync=1
|
|
|
|
echo 'Waited for mutation to finish'
|
|
|
|
${CLICKHOUSE_CLIENT} --multiquery --query="
|
|
alter table lc_empty_part_bug modify column s LowCardinality(String);
|
|
SELECT 'still alive';
|
|
insert into lc_empty_part_bug select number+100 as id, toString(rand()) from numbers(100);
|
|
SELECT count() FROM lc_empty_part_bug WHERE not ignore(*);
|
|
DROP TABLE lc_empty_part_bug;
|
|
" --mutations_sync=1
|