Intermittent error while trying to restore #1149
-
I am getting this error sometimes when I try to restore from a remote backup: one of restoreDataRegular go-routine return error: can't attach data parts for table 'table': table can't restore cause system.replicas entries already exists and replication in progress from another replica, log_pointer=12, log_max_index=11, absolute_delay=0, queue_size=0 As of now I am creating backup and then without dropping trying to restore, thought insertions are not happening to the database. Is not dropping the database an issue before restore? Also any other reason why we encounter this error? What all possible reasons can be that we encounter this error while restore? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 23 replies
-
did you run restore command concurrenlty in multiple replicas? could you follow proper commands sequence |
Beta Was this translation helpful? Give feedback.
could you share?
SELECT * FROM system.zookeeper WHERE path='/clickhouse/tables/{cluster}/{shard}/db/table' FORMAT Vertical
as temporary workaround use
restore_remote --rm --data --env=CLICKHOUSE_CHECK_REPLICAS_BEFORE_ATTACH=false