Merge pull request #56023 from ClickHouse/fix_02438

Fix 02438_sync_replica_lightweight
This commit is contained in:
Alexander Tokmakov 2023-10-26 15:48:43 +02:00 committed by GitHub
commit 463a728b09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -5,8 +5,9 @@ GET_PART all_1_1_0
MERGE_PARTS all_0_1_1
3 1 all_0_1_1
3 2 all_0_1_1
4 1 all_0_1_1
4 2 all_0_1_1
4 1
4 2
MERGE_PARTS all_0_1_1
5 1 all_0_2_2
5 2 all_0_2_2
5 3 all_0_2_2

View File

@ -24,7 +24,8 @@ system start replicated sends rmt1;
system sync replica rmt2 lightweight; -- waits for fetches, not merges
select type, new_part_name from system.replication_queue where database=currentDatabase() and table='rmt2' order by new_part_name;
select 3, n, _part from rmt1 order by n;
select 4, n, _part from rmt2 order by n;
select 4, n from rmt2 order by n;
select type, new_part_name from system.replication_queue where database=currentDatabase() and table='rmt2' order by new_part_name;
system start merges rmt2;
system sync replica rmt2;