mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-05 22:43:15 +00:00
The test generates a random set of mutations and creates two readers: - one by reversing the mutations, creating an sstable out of the result, and querying it in reverse, - one by creating an sstable directly from the mutations and querying it in forward mode. It checks that the readers give equal results. The test already managed to find a bug where offsets returned by the sstable index were interpreted incorrectly as absolute instead of relative. It also helped find another bug unrelated to reversing (#9352). Surprisingly few tests use the random schema and random mutation utilities which seem to be quite powerful.