https://slatedb.io logo
I'm confused why we have `MAX_IN_FLIGHT_COMPACTION...
# general
c
I'm confused why we have
MAX_IN_FLIGHT_COMPACTIONS
🤔 I think I might need some help from @Rohan hehe
We have this in the size tiered scheduler:
Copy code
rust
        while state.compactions().len() + compactions.len() < MAX_IN_FLIGHT_COMPACTIONS {
But we have this in compactor.rs:
Copy code
rust
            if self.state.num_compactions() >= self.options.max_concurrent_compactions {
                info!(
                    "already running {} compactions, which is at the max {}. Won't run compaction {:?}",
And num_compactions() is just
self.compactions().len()
r
Sorry! I've been traveling. It's just something that needs to be cleaned up. The size tiered scheduler should just use
max_concurrent_compactions
.
c
No worries! 😄
Hope the travel went well
Lemme open an issue for this