https://slatedb.io logo
Refactoring manifest store structs using generics
# general
s
@criccomini Draft PR refactoring manifest store structs using generics: https://github.com/slatedb/slatedb/pull/893. The idea is to leverage the same code for persisting compactor files.
Could you take a look? If it looks ok on high level, I can move it to review state.
Does the nightly job run integration tests? That could help validate the correctness of the code.
c
Yep! It runs deterministic simulation tests and benchmark. I'm planning to add a toxiproxy (torture) test as well.
I'll have a look at the PR.
We can also verify with @Pierre 's ZeroFS tests. They do a great job.
p
Yeah lol ๐Ÿ˜‚
Easiest way is to open a pr with your slatedb commit hash in cargo.toml
Then close that pr
Thereโ€™s no approval on workflows
Or forking the repo works too IIRC
c
@Sujeet I took a look. Seems directionally correct to me. ๐Ÿ˜„
s
Let me try doing an integration test with the above suggested approaches. Once it succeeds, the PR can be reviewed.
c
@Sujeet can you pull the RecordStore into a separate file or are you planning to do that in a later PR?
s
I can move the RecordStore to a separate file. I think we should move it to a separate directory. We can move it in a separate PR as it would be difficult to review differences across files in this PR.
c
SGTM!
I'm excited for this. The codebase has gotten a bit messy and lacks shared patterns in a few places. Glad to see we're starting to standardize with this (and with dispatcher.rs)
s
> Yeah lol ๐Ÿ˜‚ > Easiest way is to open a pr with your slatedb commit hash in cargo.toml > Then close that pr > Thereโ€™s no approval on workflows > Or forking the repo works too IIRC I had created this PR from my SlateDB fork? Which workflow should I check for integration tests?
c
Just submit a PR that uses your slatedb. All the workflows will run.
s
You mean to say a zeroFS PR with pinned SlateDB commit hash?
c
Yep
๐Ÿ™‚
s
okay
https://github.com/Barre/ZeroFS/pull/161 I see the tests passing. So, are we good with the correctness of the above changes?
p
Tests don't really guarantee correctness, more or less that things might be ok
s
Got it. Is it a good indicator that it doesn't break any existing flows?
p
For sure, yes
s
Nice. @criccomini The PR should then be fine to review.
c
s
Done
https://github.com/slatedb/slatedb/actions/runs/17820141045/job/50661216036?pr=893 The failing test is running fine on my local machine. Any idea?
Looks like dispatcher is stopping the database after failure considering it in error state
Copy code
2025-09-18T06:42:17.516910Z  WARN slatedb::dispatcher: halting message loop because db is in error state [error=IoError(Custom { kind: Other, error: "oops" })]    
    2025-09-18T06:42:17.516966Z  WARN slatedb::dispatcher: halting message loop because db is in error state [error=IoError(Custom { kind: Other, error: "oops" })]
c
Yea this is my fault. I introduced some instability in main
I am pretty certain it's a test issue.. working through it
It's unfortunately a bit difficult to reproduce ๐Ÿ˜›