Commit Graph

63 Commits

Author SHA1 Message Date
Vitaly Baranov
7c3ba9324a Correct test "test_stop_other_host_during_backup[False]" and remove test "test_stop_other_host_during_backup[True]"
because it was replaced by new test "test_long_disconnection_stops_backup".
2024-10-30 22:18:35 +01:00
Vitaly Baranov
f6b5d27c58 Rework coordination of hosts during BACKUP ON CLUSTER / RESTORE ON CLUSTER.
Fix concurrency check, implement cancelling of distributed backups/restores.
2024-10-30 22:18:35 +01:00
robot-clickhouse
7c6ce8611c Automatic style fix 2024-09-27 10:19:49 +00:00
Arthur Passos
64d50d6e5b Merge branch 'master' into multi_auth_methods 2024-08-12 15:42:37 -03:00
Vitaly Baranov
debcc2e610 Fix test test_mutation 2024-07-31 12:31:52 +02:00
Arthur Passos
fa6564dbe3 Merge branch 'master' into multi_auth_methods 2024-07-30 10:32:13 -03:00
Vitaly Baranov
634c513ba7 Fix cleanup in test_backup_restore_on_cluster/test.py::test_system_functions 2024-07-29 13:19:24 +02:00
Arthur Passos
ec0d426a6f try to fix black 2024-06-27 08:52:20 -03:00
Arthur Passos
678700f137 update some other tests 2024-06-26 22:26:46 -03:00
Vitaly Baranov
faae8a4f2b Add tests for backup on cluster with 2 shards and 2 replicas. 2024-04-26 10:10:45 +02:00
Vitaly Baranov
e42967c724 Add test. 2024-04-20 16:48:26 +01:00
Vitaly Baranov
3012e4bc27
Merge pull request #62207 from vitlibar/fix-restoring-parts-while-readonly
Fix restoring parts while readonly
2024-04-05 13:57:27 +02:00
Vitaly Baranov
44fa62c0a4 Add test. 2024-04-02 23:44:49 +02:00
Nikita Fomichev
33e3d831f8 integration tests: add test test_replicated_database_compare_parts 2024-03-26 17:55:37 +01:00
Nikita Fomichev
31cd44457f integration tests: fix flaky tests 2024-03-26 17:55:37 +01:00
Nikita Fomichev
f7b100a885 Integration tests: fix flaky tests 2024-03-23 20:01:26 +01:00
Vitaly Baranov
79c068571d Fix test test_stop_other_host_during_backup. 2024-01-31 12:58:22 +01:00
Azat Khuzhin
56dca144cc Fix test_backup_restore_on_cluster/test.py::test_stop_other_host_during_backup flakiness
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-09-20 07:09:51 +02:00
Vitaly Baranov
7b9d6c4b96 Add test. 2023-08-23 23:33:51 +02:00
robot-clickhouse
5b0b5284c5 Automatic style fix 2023-08-06 12:57:48 +00:00
Alexey Milovidov
ce2fcc8f33 Fix wording 2023-08-06 14:48:20 +02:00
Michael Kolupaev
97e54d6eba Fix test_backup_restore_on_cluster flakiness caused by missing replica syncs 2023-07-20 15:57:29 +00:00
Vitaly Baranov
1ec5304957
Fix multiple writing of same file to backup (#51299)
* Fix writing the same file multiple times to backup.

* Add test.

---------

Co-authored-by: Nikita Mikhaylov <mikhaylovnikitka@gmail.com>
2023-06-23 12:11:18 +02:00
Alexander Tokmakov
83b12ec5ca replace NO DELAY with SYNC in tests 2023-05-03 20:08:49 +02:00
Alexander Tokmakov
75f18b1198
Revert "Check simple dictionary key is native unsigned integer" 2023-04-13 01:32:19 +03:00
lzydmxy
b88fef12de update Failed tests 2023-04-07 23:57:08 +08:00
Nikita Mikhaylov
fa5b2bd4a5
Added Keeper retries for backups operations (#47224) 2023-04-04 18:12:08 +02:00
Vitaly Baranov
481a7a76ac
Simplify backup coordination for file infos (#48095)
* Remove obsolete code for archive suffixes.

* Simplify backup coordination, stop using it for restoring.

* Build all file infos before writing to backup. Decrease number of znodes.

* Split long values before writing to ZooKeeper.

* Use separate mutexes for unrelated activities.

* Make test test_disallow_concurrency less flaky.

* Add comments and test for backup_keeper_value_max_size.
2023-03-29 15:19:40 +02:00
Aleksei Filatov
cf6ca10c83 Tests for replicated system.functions 2023-03-17 13:56:05 +03:00
Vitaly Baranov
5c1f490b3a Implement referential dependencies for table engine "Distributed"
and for functions cluster() and clusterAllReplicas().
2022-12-13 11:09:42 +01:00
Vitaly Baranov
dc25f18f13 Fix flaky integration test test_async_backups_to_same_destination. 2022-08-03 14:22:09 +02:00
Vitaly Baranov
51a2bf33e8 Rename backup statuses to CREATING_BACKUP, BACKUP_CREATED, BACKUP_FAILED, RESTORING, RESTORED, RESTORE_FAILED. 2022-07-27 09:04:10 +02:00
Vitaly Baranov
fc16a15ecf Rename column "uuid" -> "id" in system.backups and allow user to set it in a query. 2022-07-27 09:04:10 +02:00
Vitaly Baranov
131019ba49 Rename column "backup_name" -> "name" in system.backups. 2022-07-27 09:04:10 +02:00
Vitaly Baranov
4c98a7bc0f Add test for Ordinary database. 2022-07-26 08:46:51 +02:00
Vitaly Baranov
6174fe1d72 Fix tests. 2022-07-22 18:33:46 +02:00
Vitaly Baranov
619e22fe57 Add tests for shutdown during backup. 2022-07-21 12:01:16 +02:00
Vitaly Baranov
ad115a9a3d
Merge pull request #39254 from vitlibar/backup-checks-destination-not-in-use
Check that the destination for a backup is not in use.
2022-07-18 15:19:43 +02:00
Vitaly Baranov
ef3a24d20f Fix tests. 2022-07-15 15:44:29 +02:00
Vitaly Baranov
2f47be5da7 Check that the destination for a backup is not in use. 2022-07-15 13:34:58 +02:00
Vitaly Baranov
847cda87f9 BACKUP/RESTORE ON CLUSTER use async mode on replicas now. 2022-07-08 22:26:01 +02:00
Vitaly Baranov
43d35eec1b Write unfinished mutations to backup. 2022-07-05 14:51:09 +02:00
Vitaly Baranov
efbee5e723 Improve gathering metadata for backup - part 7. 2022-06-30 08:37:17 +02:00
Vitaly Baranov
7689e0c36f Improve gathering metadata for backup - part 6. 2022-06-30 08:37:17 +02:00
Vitaly Baranov
47ac47350b Store projections in backups. 2022-06-30 08:37:17 +02:00
Vitaly Baranov
8a7c970ce0 Fix style. 2022-06-19 15:58:26 +02:00
Vitaly Baranov
b0d19328b8 Add test for ReplicatedAccessStorage. 2022-06-19 14:14:41 +02:00
Vitaly Baranov
01aaaf7395 More accurate access checking for RESTORE. 2022-06-19 11:26:41 +02:00
Vitaly Baranov
ce1836f0d2 Lock tables for share before backup and restore. 2022-06-15 20:28:43 +02:00
Vitaly Baranov
131382e025 Fix async tests. 2022-06-15 20:28:42 +02:00