Netflix/astyanax — Issue #16: TimeUUID getNext() doesn't return correct values
Author: jordanlewis
Created: 2012-02-28 20:20:33+00:00
State: open

The TimeUUID getNext() method increments the least significant bits of its value in order to get the "next" TimeUUID for the purposes of pagination.

However, Cassandra's TimeUUID comparator doesn't simply compare the whole thing lexically, the way its UUID comparator does. It compares it with respect to the TimeUUID RFC: http://www.ietf.org/rfc/rfc4122.txt

Note that the least significant part of the TimeUUID for comparison purposes is actually its 4th byte.

This problem obviously won't bite you often, since the space of UUIDs is so large, but when it bites you, it'll bite hard...

Does this make sense, or am I missing something?