cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Pérez Miguel <>
Subject RandomPartitioner and the token limits
Date Wed, 03 Oct 2012 14:19:50 GMT

Reading the wiki of operations
( I noticed something
strange. When using RandomPartitioner, tokens are integers in the
range [0,2**127] (both limits included) but keys are converted into
this range using MD5. MD5 has 128 bits, so, tokens should not be in
the range [0, (2**128)-1]?

Anyway, if Cassandra uses only 127 bits of that 128 bits because it
tries to convert this 128 bit into a signed int, tokens should not be
in the range [0, 2**127) (first limit included, last not included)?

Thank you

Carlos Pérez Miguel

View raw message