Skip to content

Commit

Permalink
Merge #54044
Browse files Browse the repository at this point in the history
54044: cli: add deprecation notice to dump CLI command r=dt,knz a=adityamaru

Fixes: #54040

Release justification: low risk, high benefit changes to existing functionality

Co-authored-by: Aditya Maru <adityamaru@gmail.com>
  • Loading branch information
craig[bot] and adityamaru committed Sep 8, 2020
2 parents 6a162df + 127bae5 commit 5e43478
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion pkg/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,6 @@ Available Commands:
statement-diag commands for managing statement diagnostics bundles
auth-session log in and out of HTTP sessions
node list, inspect, drain or remove nodes
dump dump sql tables
nodelocal upload and delete nodelocal files
userfile upload, list and delete user scoped files
Expand Down
2 changes: 2 additions & 0 deletions pkg/cli/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ Dump SQL tables of a cockroach database. If the table name
is omitted, dump all tables in the database.
`,
RunE: MaybeDecorateGRPCError(runDump),
Deprecated: "cockroach dump will be removed in a subsequent release.\n" +
"For details, see: https://github.com/cockroachdb/cockroach/issues/54040",
}

// We accept versions that are strictly newer than v2.1.0-alpha.20180416
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ var nodeCmds = []*cobra.Command{

var nodeCmd = &cobra.Command{
Use: "node [command]",
Short: "list, inspect, drain or remove nodes",
Short: "list, inspect, drain or remove nodes\n",
Long: "List, inspect, drain or remove nodes.",
RunE: usageAndErr,
}
Expand Down

0 comments on commit 5e43478

Please sign in to comment.