You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 082b0ad
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: ReadMe.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -803,6 +803,7 @@ Create schema and restore data from backup: `curl -s localhost:7171/backup/resto
803
803
- Optional string query argument `restore_schema_as_attach` or `restore-schema-as-attach` works the same as the `--restore-schema-as-attach` CLI argument.
804
804
- Optional boolean query argument `resume` works the same as the `--resume` CLI argument (resume download for object disk data).
805
805
- Optional boolean query argument `skip_empty_tables` or `skip-empty-tables` works the same as the `--skip-empty-tables` CLI argument (skip restoring tables that have no data).
806
+
- Optional boolean query argument `skip_kafka_keeper_hold` or `skip-kafka-keeper-hold` works the same as the `--skip-kafka-keeper-hold` CLI argument (don't hold consumption of restored Kafka tables with `kafka_keeper_path` via partition locks until data restore completes, release already placed locks).
806
807
- Optional boolean query argument `rebind_replica_path_if_exists` or `rebind-replica-path-if-exists` works the same as the `--rebind-replica-path-if-exists` CLI argument (overrides `clickhouse.rebind_replica_path_if_exists` for this request, rebind a restored ReplicatedMergeTree to `default_replica_path` when the original ZK path still has leftover state but our replica entry is absent). WARNING: never set during a concurrent HA multi-replica restore.
807
808
- Optional boolean query argument `drop_replica_if_exists` or `drop-replica-if-exists` works the same as the `--drop-replica-if-exists` CLI argument (overrides `clickhouse.drop_replica_if_exists` for this request, execute `SYSTEM DROP REPLICA ... FROM ZKPATH ...` and keep the original replication path when our own replica entry still exists in ZooKeeper but no local table uses it). WARNING: never set during a concurrent HA multi-replica restore.
808
809
- Optional string query argument `callback` allow pass callback URL which will call with POST with `application/json` with payload `{"status":"error|success|cancel","error":"not empty when error happens", "operation_id" : "<random_uuid>", "command":"<full command line>", "duration":"<elapsed>"}`. When omitted or empty, falls back to `general.callback_url` if configured.
@@ -837,6 +838,7 @@ A backup with ClickHouse Cloud / native `BACKUP ... TO S3/AzureBlobStorage` layo
837
838
- Optional boolean query argument `allow_missing_files` or `allow-missing-files` works the same as the `--allow-missing-files` CLI argument (skip data parts missing on remote storage instead of failing, overrides `general.allow_missing_files_on_download` for this request).
838
839
- Optional boolean query argument `streaming` works the same as the `--streaming` CLI argument (restore each table right after its download and delete its local copy, see [Streaming mode](#streaming-mode)).
839
840
- Optional boolean query argument `skip_empty_tables` or `skip-empty-tables` works the same as the `--skip-empty-tables` CLI argument (skip restoring tables that have no data).
841
+
- Optional boolean query argument `skip_kafka_keeper_hold` or `skip-kafka-keeper-hold` works the same as the `--skip-kafka-keeper-hold` CLI argument (don't hold consumption of restored Kafka tables with `kafka_keeper_path` via partition locks until data restore completes, release already placed locks).
840
842
- Optional boolean query argument `rebind_replica_path_if_exists` or `rebind-replica-path-if-exists` works the same as the `--rebind-replica-path-if-exists` CLI argument (overrides `clickhouse.rebind_replica_path_if_exists` for this request, rebind a restored ReplicatedMergeTree to `default_replica_path` when the original ZK path still has leftover state but our replica entry is absent). WARNING: never set during a concurrent HA multi-replica restore.
841
843
- Optional boolean query argument `drop_replica_if_exists` or `drop-replica-if-exists` works the same as the `--drop-replica-if-exists` CLI argument (overrides `clickhouse.drop_replica_if_exists` for this request, execute `SYSTEM DROP REPLICA ... FROM ZKPATH ...` and keep the original replication path when our own replica entry still exists in ZooKeeper but no local table uses it). WARNING: never set during a concurrent HA multi-replica restore.
842
844
- Optional string query argument `callback` allow pass callback URL which will call with POST with `application/json` with payload `{"status":"error|success|cancel","error":"not empty when error happens", "operation_id" : "<random_uuid>", "command":"<full command line>", "duration":"<elapsed>"}`. When omitted or empty, falls back to `general.callback_url` if configured.
@@ -1135,7 +1137,7 @@ NAME:
1135
1137
clickhouse-backup restore - Create schema and restore data from backup
--table string, --tables string, -t string Restore only database and objects which matched with table name patterns, separated by comma, allow ? and * as wildcard
@@ -1151,6 +1153,7 @@ OPTIONS:
1151
1153
--schema, -s Restore schema only
1152
1154
--data, -d Restore data only
1153
1155
--rm, --drop Drop exists schema objects before restore
1156
+
--skip-kafka-keeper-hold Don't hold consumption of restored Kafka tables with kafka_keeper_path via partition locks until data restore completes, release already placed locks
1154
1157
-i, --ignore-dependencies Ignore dependencies when drop exists schema objects
1155
1158
--rbac, --restore-rbac, --do-restore-rbac Restore RBAC related objects, enabled always when general->rbac_restore_always: true
1156
1159
--configs, --restore-configs, --do-restore-configs Restore 'clickhouse-server' CONFIG related files, enabled always when general->config_restore_always: true
@@ -1179,7 +1182,7 @@ NAME:
1179
1182
clickhouse-backup restore_remote - Download and restore
A remote backup with ClickHouse Cloud / native BACKUP layout (.backup without metadata.json, `cloud` in `list remote`) is restored via restore_cloud, only with remote_storage s3 or azblob and without mapping, --schema, --data, --rbac, --configs, --named-collections, --resume and --streaming options
@@ -1199,6 +1202,7 @@ OPTIONS:
1199
1202
--schema, -s Download and Restore schema only
1200
1203
--data, -d Download and Restore data only
1201
1204
--rm, --drop Drop schema objects before restore
1205
+
--skip-kafka-keeper-hold Don't hold consumption of restored Kafka tables with kafka_keeper_path via partition locks until data restore completes, release already placed locks
1202
1206
-i, --ignore-dependencies Ignore dependencies when drop exists schema objects
1203
1207
--rbac, --restore-rbac, --do-restore-rbac Download and Restore RBAC related objects, enabled always when general->rbac_restore_always: true
1204
1208
--configs, --restore-configs, --do-restore-configs Download and Restore 'clickhouse-server' CONFIG related files, enabled always when general->config_restore_always: true
Usage: "Drop exists schema objects before restore",
659
660
},
661
+
&cli.BoolFlag{
662
+
Name: "skip-kafka-keeper-hold",
663
+
Hidden: false,
664
+
Usage: "Don't hold consumption of restored Kafka tables with kafka_keeper_path via partition locks until data restore completes, release already placed locks",
Description: "A remote backup with ClickHouse Cloud / native BACKUP layout (.backup without metadata.json, `cloud` in `list remote`) is restored via restore_cloud, only with remote_storage s3 or azblob and without mapping, --schema, --data, --rbac, --configs, --named-collections, --resume and --streaming options\n"+
Usage: "Don't hold consumption of restored Kafka tables with kafka_keeper_path via partition locks until data restore completes, release already placed locks",
0 commit comments