risingwave
risingwave copied to clipboard
feat(storage): Deterministic Compaction Test Tool
For the purpose of testing the correctness of compaction logic, we need a tool that can test compactions in a deterministic way. Firstly, we will ingest enough data into RisingWave cluster to generate L0 SSTs (with compaction disabled). Then we use the test tool to reset the hummock version and replay version deltas to simulate data ingestion. During the replay process, the test tool will trigger compactions and check data correctness before and after compactions.