Merge pull request #26684 from ClickHouse/fix-flaky-test-24

Fix flaky test `mutation_stuck_after_replace_partition`
This commit is contained in:
alexey-milovidov 2021-07-22 15:37:38 +03:00 committed by GitHub
commit e83ca20ac3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -4,8 +4,8 @@
4 4
mt 0 0_1_1_0 2
rmt 0 0_0_0_0 2
1 1
2 2
1 s1
2 s2
mt 0 0_1_1_0 2
rmt 0 0_3_3_0 2
0000000000 UPDATE s = concat(\'s\', toString(n)) WHERE 1 [] 0 1

View File

@ -5,12 +5,13 @@ create table mt (n UInt64, s String) engine = MergeTree partition by intDiv(n, 1
insert into mt values (3, '3'), (4, '4');
create table rmt (n UInt64, s String) engine = ReplicatedMergeTree('/clickhouse/test_01149_{database}/rmt', 'r1') partition by intDiv(n, 10) order by n;
insert into rmt values (1,'1'), (2, '2');
insert into rmt values (1, '1'), (2, '2');
select * from rmt;
select * from mt;
select table, partition_id, name, rows from system.parts where database=currentDatabase() and table in ('mt', 'rmt') and active=1 order by table, name;
SET mutations_sync = 1;
alter table rmt update s = 's'||toString(n) where 1;
select * from rmt;