Search code examples
cassandra

Does the minimum Murmur3Partitioner token value -9223372036854775808 have a special meaning?


The cluster is using Murmur3Partitioner partitioner. From the docs, the token range is -(2^63) to +(2^63-1); this translates to -9223372036854775808 ≤ token(id) ≤ 9223372036854775807 This is also the Java Long range.

The question is for token value -9223372036854775808, does it have special meaning? I try to query select * from table1 where token(key) = -9223372036854775808 and it gives me all the data.

Thanks!


Solution

  • The token doesn't have any special meaning, other than being the lowest value one.

    You stumbled upon a Cassandra bug :)