Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky test test_backup_all #48789

Merged

Conversation

vitlibar
Copy link
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
@@ -1206,10 +1206,27 @@ def test_backup_all(exclude_system_log_tables):

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
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
140 checks passed
@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.

None yet

4 participants