Skip to content

Commit b86fa90

Browse files
committed
Stateless tests: 02441_alter_delete_and_drop_column.sql: try to fix and add debug info
1 parent c81bec3 commit b86fa90

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 Compact 1 2 2 1 all 0
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,part_type,active,marks,rows,refcount,partition_id,metadata_version 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)