2024-11-21 12:18:38 +00:00
|
|
|
-- Tags: no-fasttest, no-parallel
|
2024-04-25 14:08:01 +00:00
|
|
|
-- 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;
|
2024-10-14 09:39:44 +00:00
|
|
|
SET max_rows_to_read = 0; -- system.text_log can be really big
|
2024-04-25 14:08:01 +00:00
|
|
|
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;
|
|
|
|
|
2024-04-25 14:08:01 +00:00
|
|
|
select count() from data_r1;
|
|
|
|
select count() from data_r2;
|