Skip to content

Commit ef9b37e

Browse files
authored
Merge pull request ClickHouse#80387 from ClickHouse/try-to-fix-test--alter-delete-and-drop-column
Stateless tests: 02441_alter_delete_and_drop_column.sql: try to fix and add debug info
2 parents f6ada1f + 2cad62f commit ef9b37e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
tuple() all_0_0_0 00000000-0000-0000-0000-000000000000 1 2 2 1 all
12
MUTATE_PART all_0_0_0_1 ['all_0_0_0']
23
1 2

tests/queries/0_stateless/02441_alter_delete_and_drop_column.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ select sleepEachRow(2) from url('http://localhost:8123/?param_tries={1..10}&quer
1414
), 'LineAsString', 's String') settings max_threads=1, http_make_head_request=0 format Null;
1515

1616
alter table mut drop column k settings alter_sync=0;
17-
system sync replica mut pull;
1817

1918
-- a funny way to wait for ALTER_METADATA to disappear from the replication queue
2019
select sleepEachRow(2) from url('http://localhost:8123/?param_tries={1..10}&query=' || encodeURLComponent(
2120
'select * from system.replication_queue where database=''' || currentDatabase() || ''' and table=''mut'' and type=''ALTER_METADATA'''
2221
), 'LineAsString', 's String') settings max_threads=1, http_make_head_request=0 format Null;
2322

23+
system sync replica mut pull;
24+
25+
select partition,name,uuid,active,marks,rows,refcount,partition_id from system.parts where database=currentDatabase() and table='mut';
2426
select type, new_part_name, parts_to_merge from system.replication_queue where database=currentDatabase() and table='mut' and type != 'GET_PART';
2527
system start merges mut;
2628
set receive_timeout=30;

0 commit comments

Comments
 (0)