Fix test test_backup_restore_on_cluster/test_disallow_concurrency#67336
Conversation
|
This is an automated comment for commit 634c513 with description of existing statuses. It's updated for the latest CI running ✅ Click here to open a full report in a separate page Successful checks
|
There was a problem hiding this comment.
The main part of the fix is here. The test failed sometimes because it expected error
Exception(ErrorCodes::BACKUP_ALREADY_EXISTS, "Backup {} already exists", ...);
whereas the code sometimes throws also error
Exception(ErrorCodes::BACKUP_ALREADY_EXISTS, "Backup {} is being written already", ...)
So it seems it's more reliable to check for error code BACKUP_ALREADY_EXISTS instead.
There was a problem hiding this comment.
The test used to to start 10 nodes and only 2 nodes were really necessary.
There was a problem hiding this comment.
File ./_gen/cluster_for_concurrency_test.xml is used by a different test named test_backup_restore_on_cluster/test_concurrency. It's safer to use a different file name.
There was a problem hiding this comment.
The following two assertions were wrong - the first one was wrong if error is Null, and the second one was wrong if error is not Null. I fixed both assertions in this test and other tests, and also added comments and helper functions to make these tests easier to read.
|
Integration tests flaky check (asan) shows that test |
67c2b05 to
634c513
Compare
test_backup_restore_on_cluster/test_disallow_concurrency
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix integration test
test_backup_restore_on_cluster/test_disallow_concurrency.Example of failure: https://s3.amazonaws.com/clickhouse-test-reports/0/670413a69d3ae9971d804914f52f399c702f6df7/integration_tests__asan__[3_4].html
This PR fixes #42719 (comment)