https://slatedb.io logo
<@1144686022010097794> I'm confused by this test: ...
# general
c
@Rohan I'm confused by this test: https://github.com/slatedb/slatedb/blob/392cf810c3b7f8ee8493928e45ea561e37ecceac/slatedb/src/compactor_state.rs#L370-L399 It says it never compacts, but creating a DB starts a compactor, which will begin compacting. How is it that the L0's never get compacted?
Yea, I'm pretty sure all these tests are flaky. I added a simple sleep(10000) in "test_should_merge_db_state_correctly_when_never_compacted" and it failed because the l0 SST counts don't match what's expected anymore (because the compactor runs).
r
yeah these tests should all be running with
compactor_options: None
. I think this broke quite a while ago, but that was the intention
c
šŸ˜… šŸ‘
I came to the same conclusion a while back.. now doing battle with some other tests šŸ˜›
I'm working on making the compactor async
So we can use the single threaded tokio runtime to DST
r
> I'm working on making the compactor async 😢
that's a good justification though
c
Yea I wanted to run it past you
I have a PR I'm submitting now that I hope you can find some time to look at
I honestly find it much cleaner now.. plus DST.. but I want to make sure you guys are comfortable with it