From e71924efceca5b2ee5be80d84a95921555b5d5b3 Mon Sep 17 00:00:00 2001 From: Erik Grinaker Date: Mon, 26 Sep 2022 15:56:37 +0000 Subject: [PATCH] cli: deprecate `debug unsafe-remove-dead-replicas` This patch marks `unsafe-remove-dead-replicas` as deprecated, and refers users to the new `recover` commands. It will be removed in v23.1. Release note (cli change): The `debug unsafe-remove-dead-replicas` CLI command has been deprecated, and will be removed in v23.1. Users should use the new `debug recover` set of commands instead. --- pkg/cli/debug.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/cli/debug.go b/pkg/cli/debug.go index 3163ed746788..0d8cb3196a93 100644 --- a/pkg/cli/debug.go +++ b/pkg/cli/debug.go @@ -1104,8 +1104,10 @@ func runDebugSyncBench(cmd *cobra.Command, args []string) error { var debugUnsafeRemoveDeadReplicasCmd = &cobra.Command{ Use: "unsafe-remove-dead-replicas --dead-store-ids=[store ID,...] [path]", - Short: "Unsafely attempt to recover a range that has lost quorum", + Short: "Unsafely attempt to recover a range that has lost quorum (deprecated)", Long: ` +DEPRECATED: use 'debug recover' instead. unsafe-remove-dead-replicas will be +removed in CockroachDB v23.1. This command is UNSAFE and should only be used with the supervision of a Cockroach Labs engineer. It is a last-resort option to recover data