ClickHouse/tests/queries/0_stateless/03141_fetches_errors_stress.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
1.3 KiB
MySQL
Raw Normal View History

2024-11-21 12:18:38 +00:00
-- Tags: no-fasttest, no-parallel
-- Tag no-parallel -- due to failpoints
create table data_r1 (key Int, value String) engine=ReplicatedMergeTree('/tables/{database}/data', '{table}') order by tuple();
create table data_r2 (key Int, value String) engine=ReplicatedMergeTree('/tables/{database}/data', '{table}') order by tuple();
system enable failpoint replicated_sends_failpoint;
insert into data_r1 select number, randomPrintableASCII(100) from numbers(100_000) settings max_block_size=1000, min_insert_block_size_rows=1000;
system disable failpoint replicated_sends_failpoint;
system sync replica data_r2;
system flush logs;
SET max_rows_to_read = 0; -- system.text_log can be really big
select event_time_microseconds, logger_name, message from system.text_log where level = 'Error' and message like '%Malformed chunked encoding%' order by 1 format LineAsString;
-- { echoOn }
2024-10-04 09:13:03 +00:00
select table, errorCodeToName(error), count() from system.part_log where
2024-09-26 08:27:37 +00:00
database = currentDatabase()
and error > 0
and errorCodeToName(error) not in ('FAULT_INJECTED', 'NO_REPLICA_HAS_PART', 'ATTEMPT_TO_READ_AFTER_EOF')
and (errorCodeToName(error) != 'POCO_EXCEPTION' or exception not like '%Malformed message: Unexpected EOF%')
2024-10-04 09:13:03 +00:00
group by 1, 2
2024-09-26 08:27:37 +00:00
order by 1, 2;
select count() from data_r1;
select count() from data_r2;