From ff16f681163244969afa9d2ba5647f611e482136 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sun, 10 Jan 2021 12:20:03 +0300 Subject: [PATCH] Add a smoke test for SYSTEM RESTART REPLICAS --- .../01646_system_restart_replicas_smoke.reference | 2 ++ .../0_stateless/01646_system_restart_replicas_smoke.sql | 5 +++++ tests/queries/skip_list.json | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 tests/queries/0_stateless/01646_system_restart_replicas_smoke.reference create mode 100644 tests/queries/0_stateless/01646_system_restart_replicas_smoke.sql diff --git a/tests/queries/0_stateless/01646_system_restart_replicas_smoke.reference b/tests/queries/0_stateless/01646_system_restart_replicas_smoke.reference new file mode 100644 index 00000000000..3c5ce58bfb2 --- /dev/null +++ b/tests/queries/0_stateless/01646_system_restart_replicas_smoke.reference @@ -0,0 +1,2 @@ +x Date +s String diff --git a/tests/queries/0_stateless/01646_system_restart_replicas_smoke.sql b/tests/queries/0_stateless/01646_system_restart_replicas_smoke.sql new file mode 100644 index 00000000000..cfd70df8dd4 --- /dev/null +++ b/tests/queries/0_stateless/01646_system_restart_replicas_smoke.sql @@ -0,0 +1,5 @@ +DROP TABLE IF EXISTS data_01646; +CREATE TABLE data_01646 (x Date, s String) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test_01646/data_01646', 'r') ORDER BY s PARTITION BY x; +SYSTEM RESTART REPLICAS; +DESCRIBE TABLE data_01646; +DROP TABLE data_01646; diff --git a/tests/queries/skip_list.json b/tests/queries/skip_list.json index be1ee954136..0e60c1c30d6 100644 --- a/tests/queries/skip_list.json +++ b/tests/queries/skip_list.json @@ -15,7 +15,8 @@ "01526_max_untracked_memory", /// requires TraceCollector, does not available under sanitizers "01474_executable_dictionary", /// informational stderr from sanitizer at start "functions_bad_arguments", /// Too long for TSan - "01603_read_with_backoff_bug" /// Too long for TSan + "01603_read_with_backoff_bug", /// Too long for TSan + "01646_system_restart_replicas_smoke" /// RESTART REPLICAS can acquire too much locks, while only 64 is possible from one thread under TSan ], "address-sanitizer": [ "00877",