can't restore cause system.replicas entries #1022
-
I'm restoring the schema in each and every replica and shard (3 shard 3 replica - total 9 pods) and restoring the data in 0th replica of every shard. I'm trying to do only one table restoration and it fails with the below error. I checked the clickhouse-backup pod logs and i see the same error as given below. Any help would be appreciated. Restoration failure reason - 2024-10-08 08:08:21 2024-10-08 08:08:26 error one of restoreDataRegular go-routine return error: can't attach data parts for table 'db.stats_local': db.ap_stats_local can't restore cause system.replicas entries already exists and replication in progress from another replica, log_pointer=14648, log_max_index=14647, absolute_delay=0, queue_size=0 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
It means other replicas continue to write Look to https://github.com/Altinity/clickhouse-backup/blob/master/Examples.md#restore for one tables you need to execute in all replicas |
Beta Was this translation helpful? Give feedback.
It means other replicas continue to write
Look to https://github.com/Altinity/clickhouse-backup/blob/master/Examples.md#restore
for one tables you need to execute in all replicas
restore_remote --schema --table=db.table backup-name
and then
run
restore_remote --data --table=db.table backup-name
in first replica in each shard