mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-01 13:45:53 +00:00
" This series extends the scylla_metadata sstable component to hold an optional testual description of the sstable origin. It describes where the sstables originated from (e.g. memtable, repair, streaming, compaction, etc.) The origin string is provided by the sstable writer via sstable_writer_config, written to the scylla_metadata component, and loaded on sstable::load(). A get_origin() method was added to class sstable to retrieve its origin. It returns an empty string by default if the origin is missing. Compaction now logs the sstable origin for each sstable it compacts, and it generates the sstable origin for all sstables in generates. Regular compaction origin is simply set to "compaction" while other compaction types are mentioned by name, as "cleanup", "resharding", "reshaping", etc. A unit test was added to test the sstable_origin by writing either an empty origin and a random string, and then comparing the origin retrieved by sstable::load to the one written. Test: unit(release) Fixes #7880 " * tag 'sstable-origin-v2' of github.com:bhalevy/scylla: compaction: log sstable origin sstables: scylla_metadata: add support for sstable_origin sstables: sstable_writer_config: add origin member