You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Chris Lohfink (Jira)" <ji...@apache.org> on 2019/09/06 14:46:00 UTC
[jira] [Comment Edited] (CASSANDRA-15305) Fix multi DC nodetool
status output
[ https://issues.apache.org/jira/browse/CASSANDRA-15305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16924302#comment-16924302 ]
Chris Lohfink edited comment on CASSANDRA-15305 at 9/6/19 2:45 PM:
-------------------------------------------------------------------
Half the code for this is copy and pasted for if its {{HostStatWithPort}} or {{HostStat}} when the two objects are essentially identical so I also changed that part to just be once while fixing this.
{code}
Datacenter: dc1
===============
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
UN 127.0.0.2 173.46 KiB 1 ? 0787644a-fe22-43dc-9013-d1819e2c6344 r1
UN 127.0.0.1 1.08 GiB 1 ? fe364237-7a05-4621-b105-8edb483b1fca r1
Datacenter: dc2
===============
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
UN 127.0.0.4 135.64 KiB 1 ? a618ace4-0047-411b-9d89-f80ae3a41e08 r1
UN 127.0.0.3 135.72 KiB 1 ? f7cc3d2a-7fb0-41fb-8ad1-be1b3515abd8 r1
{code}
was (Author: cnlwsu):
Half the code for this is copy and pasted for if its {HostStatWithPort} or {HostStat} when the two objects are essentially identical so I also changed that part to just be once while fixing this.
{code}
Datacenter: dc1
===============
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
UN 127.0.0.2 173.46 KiB 1 ? 0787644a-fe22-43dc-9013-d1819e2c6344 r1
UN 127.0.0.1 1.08 GiB 1 ? fe364237-7a05-4621-b105-8edb483b1fca r1
Datacenter: dc2
===============
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
UN 127.0.0.4 135.64 KiB 1 ? a618ace4-0047-411b-9d89-f80ae3a41e08 r1
UN 127.0.0.3 135.72 KiB 1 ? f7cc3d2a-7fb0-41fb-8ad1-be1b3515abd8 r1
{code}
> Fix multi DC nodetool status output
> -----------------------------------
>
> Key: CASSANDRA-15305
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15305
> Project: Cassandra
> Issue Type: Bug
> Components: Tool/nodetool
> Reporter: Chris Lohfink
> Assignee: Chris Lohfink
> Priority: Normal
>
> The DC headers are printed before the entire table output
> {code}
> Datacenter: eu-west-1
> =====================
> Status=Up/Down
> |/ State=Normal/Leaving/Joining/Moving
> Datacenter: us-east-1
> =====================
> Status=Up/Down
> |/ State=Normal/Leaving/Joining/Moving
> -- Address Load Tokens Owns (effective) Host ID Rack
> UN 100.67.118.115 76.85 KiB 1 16.7% e1bb616a-a22d-4452-a2eb-f14faa6c7900 eu-west-1c
> UN 100.67.97.192 110.42 KiB 1 16.7% fe552b3e-33bf-42c2-9c71-c4e49a034b70 eu-west-1a
> UN 100.67.107.135 76.85 KiB 1 16.7% a9079fbe-8d7b-4f07-8d5f-b9e70a63d799 eu-west-1b
> UN 100.67.97.213 94.59 KiB 1 16.7% 948e123a-7a92-4b35-974f-c7b380998e37 eu-west-1a
> UN 100.67.118.203 110.42 KiB 1 16.7% 6a7d1845-e966-4aba-9245-ed3f5c0805d6 eu-west-1c
> UN 100.67.107.110 110.42 KiB 1 16.7% 6e23da83-e9c8-4c43-a9d1-fb0d6e775cdc eu-west-1b
> -- Address Load Tokens Owns (effective) Host ID Rack
> UN 100.66.217.160 110.42 KiB 1 16.7% 7abef190-f4e7-46e6-9e8d-d4441e6b2e33 us-east-1c
> UN 100.66.220.37 110.42 KiB 1 16.7% 6712d2bf-c912-460f-abeb-278770ad7cb4 us-east-1e
> UN 100.66.220.90 110.43 KiB 1 16.7% dcb25670-4011-457c-8018-04b22042dde4 us-east-1e
> UN 100.66.216.184 110.42 KiB 1 16.7% b620b09a-3de8-41c3-a330-6cee808b4a84 us-east-1c
> UN 100.66.219.60 110.42 KiB 1 16.7% 34769195-c582-413f-a663-82f8544d9327 us-east-1d
> UN 100.66.219.93 110.42 KiB 1 16.7% 9ae3372c-1a04-457b-bcce-3562a328565e us-east-1d
> {code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org