https://slatedb.io logo
While running stress tests, I got into a
# general
p
While running stress tests, I got into a weird state, I got backpressure messages
Copy code
2025-11-30T03:38:27.833121Z  WARN slatedb::mem_table_flush: won't flush imm to l0 because too many l0 files [l0_len=16, l0_max_ssts=16]
2025-11-30T03:38:28.302914Z  WARN slatedb::mem_table_flush: won't flush imm to l0 because too many l0 files [l0_len=16, l0_max_ssts=16]
2025-11-30T03:38:29.303677Z  WARN slatedb::mem_table_flush: won't flush imm to l0 because too many l0 files [l0_len=16, l0_max_ssts=16]
But not progress after that. I sent SIGINT to trigger the close codepath,
db.close().await?;
And this seems to be hanging
Copy code
2025-11-30T03:43:48.064330Z  INFO slatedb::garbage_collector: garbage collector shutdown
2025-11-30T03:43:48.065178Z  INFO slatedb::mem_table_flush: memtable flush thread exiting [result=Ok(())]
2025-11-30T03:43:48.065937Z  INFO slatedb::db: db closed

[no progress]
On my end, the exact branch is
Copy code
rust

        _ = tokio::signal::ctrl_c() => {
            info!("Received SIGINT, shutting down gracefully...");
            if !db_mode.is_read_only() {
                fs.flush_coordinator.flush().await?;
            }
            fs.db.close().await?;
        }
I almost wonder if it's tokio related somehow
c
Ew this doesn’t sound good
I wonder if a bg task died some how. Did you get a chance to check the tokio tasks that are running?
I think close will block forever if the compactor is dead and the l0’s are full already since the current memtable will just receive back pressure on flush.
p
No because it was a release build
c
Hmm
😭
p
I didn't see any weird message though
c
Interesting... yea if you don't see anything in the logs about failures/panics/errors then I doubt a bg task failed...
Next thing I'd wonder is whether the compactor got stuck in some way.. again being able to peak at the tasks would have been handy.. 🤔
p
If that matters, that was using the local object store
So imagine there is a deadlock there...
But perhaps it's far fetched
c
"local object store" = filesystem?
What did the stressworkload look like?
p
Yes
During the following:
So just a bunch of writes