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

Stefania commented on CASSANDRA-9300:
-------------------------------------

Oh, now I get it thanks.

However:

{code}
python
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> -(1<<63) + (1<<64) == (1<<63)-1
False
>>> -(1<<63) + (1<<64) -1 == (1<<63) -1
True
{code}

So (1 <<64) -1 then?

> token-generator - generated tokens too long
> -------------------------------------------
>
>                 Key: CASSANDRA-9300
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9300
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Robert Stupp
>            Assignee: Robert Stupp
>            Priority: Minor
>             Fix For: 3.x, 2.1.x, 2.0.x
>
>         Attachments: 9300-v2.txt, 9300.txt
>
>
> {{token-generator}} tool does not generate valid long values (2.0, 2.1, 
> trunk).
> E.g. 
> {code}
> tools/bin/token-generator 4
> DC #1:
>   Node #1:                                        0
>   Node #2:   42535295865117307932921825928971026432
>   Node #3:   85070591730234615865843651857942052864
>   Node #4:  127605887595351923798765477786913079296
> {code}
> But should generate tokens like
> {code}
> -9223372036854775808
> -4611686018427387904
> 0
> 4611686018427387904
> {code}



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

Reply via email to