Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: allow
node status
to work on unavailable/broken clusters
Expand the `crdb_internal.gossip_liveness` and `crdb_internal.gossip_nodes` tables to include columns needed to satisfy the basic usage of `node status`. Specifically, added `address`, `build`, `started_at`, `updated_at` and `replicas` columns. Changed `node status` to use `gossip_{liveness,nodes}` instead of `kv_node_status`. The latter table requires the range containing the consistent node status descriptors to be available, while `gossip_{liveness,nodes}` only retrieves info from gossip. `node status` and `node status --decommission` will work on unavailable/broken clusters as long as the node they are pointed to is up. `node status {--stats,--ranges,--all}` continue to require a reasonably healthy cluster. Fixes cockroachdb#16489 Release note (cli change): Enhance `node status` to work on unavailable/broken clusters.
- Loading branch information