Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql, cli: Add attrs and locality to the node command
This patch fixes a number of aspects about how we display node and store attributes as well as adds node attributes and localities to the * The String method on attributes proto was incorrectly using a `,` to join the array. Attributes always use a `:` so that it can be parsed via the command line and this fixes that. * Also, the internal tables `crdb_interal.gossip_nodes`, `crdb_internal.kv_node_status` and `crdb_internal.kv_store_status` had the attributes listed as JSON. This is not useful as it won't match what's in the command line. This converts it to a string. * This also adds the node attributes and localities to the `cockroach node status` command. As it was missing and can be helpful. Release note (cli change): Node attributes and localities have been added to the `cockroach node status` command.
- Loading branch information
1 parent
76477fd
commit 47900a1
Showing
4 changed files
with
17 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters