Skip to content

Commit

Permalink
Merge #25276
Browse files Browse the repository at this point in the history
25276: cherrypick-2.0: cli: `debug zip` with timeout, added dump for crdb_internal.gossip_* r=bdarnell a=tschottdorf

Now made command `debug zip` continue past errors with a timeout
(based on peter's timeout commit).

Also dumped information in crdb_internal.gossip_nodes and gossip_liveness
to the output file.

Fixes #23954.
cc @cockroachdb/release 
Release note: None

Co-authored-by: Victor Chen <[email protected]>
  • Loading branch information
craig[bot] and windchan7 committed May 7, 2018
2 parents 5608e27 + 1757a14 commit 890f04a
Show file tree
Hide file tree
Showing 3 changed files with 197 additions and 103 deletions.
2 changes: 2 additions & 0 deletions pkg/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2093,6 +2093,8 @@ writing ` + os.DevNull + `
debug/events
debug/liveness
debug/settings
debug/gossip/liveness
debug/gossip/nodes
debug/nodes/1/status
debug/nodes/1/gossip
debug/nodes/1/stacks
Expand Down
1 change: 1 addition & 0 deletions pkg/cli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ func init() {
timeoutCmds := []*cobra.Command{
statusNodeCmd,
lsNodesCmd,
debugZipCmd,
// If you add something here, make sure the actual implementation
// of the command uses `cmdTimeoutContext(.)` or it will ignore
// the timeout.
Expand Down
Loading

0 comments on commit 890f04a

Please sign in to comment.