cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-4550) nodetool ring output should use hex not integers for tokens
Date Fri, 17 Aug 2012 02:07:48 GMT

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

Jonathan Ellis commented on CASSANDRA-4550:
-------------------------------------------

I'm not sure we can fix this while maintaining backwards compatibility, since many biginteger-as-string
representations are also valid 128bit hex strings.  We'd have no way of distinguishing which
the user meant.

And I don't think it's worth breaking all token-parsing code and all initial_token settings
to *only* support hex tokens, this late in the game.
                
> nodetool ring output should use hex not integers for tokens
> -----------------------------------------------------------
>
>                 Key: CASSANDRA-4550
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4550
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>         Environment: Linux
>            Reporter: Aaron Turner
>            Priority: Trivial
>              Labels: lhf
>
> The current output of nodetool ring prints start token values as base10 integers instead
of hex.  This is not very user friendly for a number of reasons:
> 1. Hides the fact that the values are 128bit
> 2. Values are not of a consistent length, while in hex padding with zero is generally
accepted
> 3. When using the default random partitioner, having the values in hex makes it easier
for users to determine which node(s) a given key resides on since md5 utilities like md5sum
output hex.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message