mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-09 17:14:47 +00:00
Merge pull request #69202 from ClickHouse/pr-incorrect-reverse-order
Test for parallel replicas, reverse in order reading mode
This commit is contained in:
commit
4dc8159b43
151
tests/queries/0_stateless/03231_pr_reverse_in_order.reference
Normal file
151
tests/queries/0_stateless/03231_pr_reverse_in_order.reference
Normal file
@ -0,0 +1,151 @@
|
||||
ReadType: InReverseOrder
|
||||
2024-06-11 02:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-11 00:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-10 22:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-10 20:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-10 18:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-10 16:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-10 14:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-10 12:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-10 10:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-10 08:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-10 06:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-10 04:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-10 02:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-10 02:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-10 00:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-10 00:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 22:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 22:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 20:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 20:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 18:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 18:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 16:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 16:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 14:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 14:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 12:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 12:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 10:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 10:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 08:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 08:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 06:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 06:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 04:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 04:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 02:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 02:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 02:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 00:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 00:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-09 00:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 22:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 22:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 22:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 20:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 20:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 20:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 18:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 18:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 18:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 16:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 16:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 16:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 14:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 14:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 14:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 12:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 12:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 12:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 10:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 10:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 10:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 08:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 08:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 08:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 06:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 06:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 06:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 04:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 04:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 04:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 02:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 02:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 02:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 00:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 00:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-08 00:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 22:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 22:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 22:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 20:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 20:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 20:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 18:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 18:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 18:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 16:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 16:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 16:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 14:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 14:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 14:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 12:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 12:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 12:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 10:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 10:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 10:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 08:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 08:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 08:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 06:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 06:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 06:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 04:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 04:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 04:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 02:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 02:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 02:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 00:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 00:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-07 00:00:01 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 22:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 22:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 20:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 20:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 18:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 18:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 16:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 16:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 14:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 14:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 12:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 12:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 10:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 10:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 08:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 08:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 06:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 06:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 04:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 04:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 02:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 02:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 00:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-06 00:00:02 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-05 22:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-05 20:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-05 18:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-05 16:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-05 14:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-05 12:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-05 10:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-05 08:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-05 06:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-05 04:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-05 02:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
||||
2024-06-05 00:00:03 asan 02221_parallel_replicas_bug FAIL fail
|
49
tests/queries/0_stateless/03231_pr_reverse_in_order.sql
Normal file
49
tests/queries/0_stateless/03231_pr_reverse_in_order.sql
Normal file
@ -0,0 +1,49 @@
|
||||
DROP TABLE IF EXISTS checks SYNC;
|
||||
|
||||
CREATE TABLE checks
|
||||
(
|
||||
`check_name` LowCardinality(String),
|
||||
`check_status` LowCardinality(String),
|
||||
`check_start_time` DateTime,
|
||||
`test_name` LowCardinality(String),
|
||||
`test_status` LowCardinality(String),
|
||||
)
|
||||
ENGINE = ReplicatedMergeTree('/clickhouse/{database}/checks', '{replica}')
|
||||
ORDER BY check_start_time;
|
||||
|
||||
SYSTEM STOP MERGES checks;
|
||||
|
||||
INSERT INTO checks SELECT 'asan', if(number % 2, 'success', 'fail'), toDateTime('2024-06-07 00:00:01') + INTERVAL number HOUR, '02221_parallel_replicas_bug', 'FAIL' from numbers(100);
|
||||
INSERT INTO checks SELECT 'asan', if(number % 2, 'success', 'fail'), toDateTime('2024-06-06 00:00:02') + INTERVAL number HOUR, '02221_parallel_replicas_bug', 'FAIL' from numbers(100);
|
||||
INSERT INTO checks SELECT 'asan', if(number % 2, 'success', 'fail'), toDateTime('2024-06-05 00:00:03') + INTERVAL number HOUR, '02221_parallel_replicas_bug', 'FAIL' from numbers(100);
|
||||
|
||||
SELECT trimBoth(explain)
|
||||
FROM
|
||||
(
|
||||
EXPLAIN actions=1 SELECT
|
||||
check_start_time,
|
||||
check_name,
|
||||
test_name,
|
||||
test_status,
|
||||
check_status
|
||||
FROM checks
|
||||
WHERE 1 AND (test_status != 'SKIPPED') AND (test_status != 'OK') AND (check_status != 'success') AND (test_name ILIKE '%parallel_replicas%')
|
||||
ORDER BY
|
||||
check_start_time DESC,
|
||||
check_name ASC,
|
||||
test_name ASC
|
||||
SETTINGS query_plan_read_in_order = 1, optimize_read_in_order = 1, max_parallel_replicas = 1
|
||||
)
|
||||
WHERE explain LIKE '%InReverseOrder%';
|
||||
|
||||
SELECT check_start_time, check_name, test_name, test_status, check_status
|
||||
FROM checks
|
||||
WHERE 1
|
||||
AND test_status != 'SKIPPED'
|
||||
AND test_status != 'OK'
|
||||
AND check_status != 'success'
|
||||
AND test_name ilike '%parallel_replicas%'
|
||||
ORDER BY check_start_time desc, check_name, test_name
|
||||
SETTINGS query_plan_read_in_order = 1, optimize_read_in_order = 1, allow_experimental_parallel_reading_from_replicas = 1, cluster_for_parallel_replicas = 'test_cluster_one_shard_three_replicas_localhost', max_parallel_replicas = 3;
|
||||
|
||||
DROP TABLE checks SYNC;
|
Loading…
Reference in New Issue
Block a user