pub async fn compaction_test_main(
_listen_addr: SocketAddr,
advertise_addr: HostAddr,
opts: CompactionTestOpts,
) -> Result<()>
Expand description
Steps to use the compaction test tool
- Start the cluster with ci-compaction-test config:
./risedev d ci-compaction-test
- Ingest enough L0 SSTs, for example we can use the tpch-bench tool
- Disable hummock manager commit new epochs:
./risedev ctl hummock disable-commit-epoch
, and it will print the current max committed epoch in Meta. - Use the test tool to replay hummock version deltas and trigger compactions:
./risedev compaction-test --state-store hummock+s3://your-bucket -t <table_id>