mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Fix flaky test test_backup_all[True].
This commit is contained in:
parent
8989f3a243
commit
39705ee205
@ -1206,10 +1206,27 @@ def test_backup_all(exclude_system_log_tables):
|
|||||||
|
|
||||||
exclude_from_backup = []
|
exclude_from_backup = []
|
||||||
if exclude_system_log_tables:
|
if exclude_system_log_tables:
|
||||||
system_log_tables = instance.query(
|
# See the list of log tables in src/Interpreters/SystemLog.cpp
|
||||||
"SELECT concat('system.', table) FROM system.tables WHERE (database = 'system') AND (table LIKE '%_log')"
|
log_tables = [
|
||||||
).splitlines()
|
"query_log",
|
||||||
exclude_from_backup += system_log_tables
|
"query_thread_log",
|
||||||
|
"part_log",
|
||||||
|
"trace_log",
|
||||||
|
"crash_log",
|
||||||
|
"text_log",
|
||||||
|
"metric_log",
|
||||||
|
"filesystem_cache_log",
|
||||||
|
"filesystem_read_prefetches_log",
|
||||||
|
"asynchronous_metric_log",
|
||||||
|
"opentelemetry_span_log",
|
||||||
|
"query_views_log",
|
||||||
|
"zookeeper_log",
|
||||||
|
"session_log",
|
||||||
|
"transactions_info_log",
|
||||||
|
"processors_profile_log",
|
||||||
|
"asynchronous_insert_log",
|
||||||
|
]
|
||||||
|
exclude_from_backup += ["system." + table_name for table_name in log_tables]
|
||||||
|
|
||||||
backup_command = f"BACKUP ALL {'EXCEPT TABLES ' + ','.join(exclude_from_backup) if exclude_from_backup else ''} TO {backup_name}"
|
backup_command = f"BACKUP ALL {'EXCEPT TABLES ' + ','.join(exclude_from_backup) if exclude_from_backup else ''} TO {backup_name}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user