cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-8596) Display datacenter/rack info for offline nodes - PropertyFileSnitch
Date Thu, 26 Feb 2015 17:58:04 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-8596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14338802#comment-14338802
] 

Brandon Williams commented on CASSANDRA-8596:
---------------------------------------------

Mostly looks good, but you should use ByteBufferUtil.string instead of converting it yourself.

> Display datacenter/rack info for offline nodes - PropertyFileSnitch
> -------------------------------------------------------------------
>
>                 Key: CASSANDRA-8596
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8596
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Vova
>            Priority: Minor
>         Attachments: 8596.diff
>
>
> When using GossipPropertyFileSnitch "nodetool status" shows default (from cassandra-topology.properties
) datacenter/rack for offline nodes.
> It happens because offline nodes are not in endpointMap, and thus getRawEndpointInfo
 returns default DC/rack is returned (PropertyFileSnitch.java).
> I suggest to take info for those nodes from system.peers tables - just like 
> SELECT data_center,rack FROM system.peers WHERE peer='10.0.0.1'
> Patch attached.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message