mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-03 13:37:04 +00:00
The information (last compacted keys) is lost after node is restarted or schema is updated, which causes strategy to be rebuilt. We need it for strategy to guarantee uniform distribution of token range across sstables, or we could end up with 1 sstable of level L overlapping with lots of sstables of level L+1, and that results in a compaction of undesired length. That information can be generated from scratch by getting last key of newest sstable in each level > 0. Fixes #1906. Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com> Message-Id: <35ebd15977d5a8418239febb160c796cdc0e98fa.1480533805.git.raphaelsc@scylladb.com>