Hey everyone, I was reading the compaction design document to kick off this issue on validating compactions submitted to the orchestrator, but I still have doubts about which validations are expected. From reading the document the validations that I think we could add are:
Schedule a compaction for L0 if:
* The number of SRs in L0 > l0_compaction_threshold_ssts
* The number of SRs in L1 < compaction.scheduler.tiered.level_max_runs
* The number of uncompleted compactions < max_compactions
* No ongoing compaction from L0
From what I saw on the maybe_schedule_compaction function the only validation applied there is the number of ssts in l0 must be greater or equal to 4 to schedule a compaction.
If the issue is aiming to validate something different please let me know., more than happy to follow it and learn.
https://github.com/slatedb/slatedb/issues/96