Skip to content

Fix flaky test test_backup_all#48789

Merged
alexey-milovidov merged 1 commit intoClickHouse:masterfrom
vitlibar:fix-flaky-test-backup-all
Apr 17, 2023
Merged

Fix flaky test test_backup_all#48789
alexey-milovidov merged 1 commit intoClickHouse:masterfrom
vitlibar:fix-flaky-test-backup-all

Conversation

@vitlibar
Copy link
Copy Markdown
Member

Changelog category:

  • Not for changelog

Fix flaky test test_backup_all[True].

@robot-ch-test-poll robot-ch-test-poll added the pr-not-for-changelog This PR should not be mentioned in the changelog label Apr 14, 2023
@vitlibar vitlibar force-pushed the fix-flaky-test-backup-all branch from eb87e6d to 39705ee Compare April 14, 2023 16:01
exclude_from_backup = []
if exclude_system_log_tables:
system_log_tables = instance.query(
"SELECT concat('system.', table) FROM system.tables WHERE (database = 'system') AND (table LIKE '%_log')"
Copy link
Copy Markdown
Member Author

@vitlibar vitlibar Apr 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This query didn't work well because these logs tables are created in background so some log tables could be created after this query but before the BACKUP ALL EXCEPT ... query captured a list of tables to backup. And that caused the test to fail. So I decided to just hardcode a whole list of the system log tables.

@SmitaRKulkarni SmitaRKulkarni self-assigned this Apr 15, 2023
@alexey-milovidov alexey-milovidov self-assigned this Apr 17, 2023
@alexey-milovidov alexey-milovidov merged commit 82fe9d4 into ClickHouse:master Apr 17, 2023
@vitlibar vitlibar deleted the fix-flaky-test-backup-all branch April 20, 2023 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants