mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 00:50:35 +00:00
There is a check whose intent was to detect wrap around during walk of the ring tokens by comparing the split point with minimum token, which is supposed to be inserted by the ring iterator. It assumed that when we encounter it, the range is a wrap around. It doesn't hold when minimum token is part of the token metadata or set of tokens is empty. In such case, a full range would be split into 3 overlapping full ranges. The fix is to drop the assumption and instead ensure that ranges do not wrap around by unwrapping them if necessary. Fixes #655.