You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# processor StorageURLSource releases the HTTP session either when all data is fully read in the last generate call or at d-tor of the processor instance
47
+
# with LIMIT 1 the HTTP session is released at pipeline d-tor because not all the data is read from HTTP connection inside StorageURLSource processor
48
+
# this tests covers the case when profile events have to be gathered and logged to the query_log only after pipeline is destroyed
49
+
50
+
for_in {0..9}
43
51
do
44
52
query_id=$(${CLICKHOUSE_CLIENT} -q "
45
-
create table if not exists mut (n int, m int, k int) engine=ReplicatedMergeTree('/test/02441/{database}/mut', '1') order by n;
46
-
set insert_keeper_fault_injection_probability=0;
47
-
set parallel_replicas_for_cluster_engines=0;
48
-
insert into mut values (1, 2, 3), (10, 20, 30);
49
-
50
-
system stop merges mut;
51
-
alter table mut delete where n = 10;
52
-
53
-
select queryID() from(
54
-
-- a funny way to wait for a MUTATE_PART to be assigned
55
-
select sleepEachRow(2) from url('http://localhost:8123/?param_tries={1..10}&query=' || encodeURLComponent(
56
-
'select 1 where ''MUTATE_PART'' not in (select type from system.replication_queue where database=''' || currentDatabase() || ''' and table=''mut'')'
57
-
), 'LineAsString', 's String')
58
-
-- queryID() will be returned for each row, since the query above doesn't return anything we need to return a fake row
0 commit comments