Skip to content

Commit

Permalink
cli: deprecate debug unsafe-remove-dead-replicas
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
erikgrinaker committed Sep 26, 2022
1 parent 8107342 commit e71924e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/cli/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e71924e

Please sign in to comment.