riptano / ccm

A script to easily create and destroy an Apache Cassandra cluster on localhost
Apache License 2.0
1.22k stars 303 forks source link

ccm creates cluster with Murmur3Paritioner minimum token #332

Open dkua opened 9 years ago

dkua commented 9 years ago

When I run the following commands to create a cluster:

ccm create test
ccm populate test -n 3
ccm start test
ccm node2 nodetool ring

I get in the following ring:

Datacenter: datacenter1
==========
Address    Rack        Status State   Load            Owns                Token
                                                                          3074457345618258602
127.0.0.1  rack1       Up     Normal  46.57 KB        66.67%              -9223372036854775808
127.0.0.2  rack1       Up     Normal  46.56 KB        66.67%              -3074457345618258603
127.0.0.3  rack1       Up     Normal  46.58 KB        66.67%              3074457345618258602

The assigned token for one of the nodes is -9223372036854775808 which is Java's Long.MIN_VALUE. This token shouldn't be assignable as it's used in queries to wrap around the entire token ring (get entire range of tokens).

ptnapoleon commented 9 years ago

CCM has always worked like this. Are you sure the minimum token is unassignable? I'm aware it's used in queries to wrap around the entire token ring.