https://slatedb.io logo
Batched writes are no longer atomically ...
# general
c
@flaneur233 I think this is a bug? Thought we were treating batched writes as atomic. https://github.com/slatedb/slatedb/issues/762
p
This is not about "visibility" but only about what happens behind the scenes storage-wise, right?
f
https://github.com/slatedb/slatedb/pull/763 could this pr helps for this?
c
Yes-ish. On a failure, a single batch write could be partially written. In that case, on restart you'd see half the data but not the other half.
But under normal conditions, the visibility works as expected
p
Ah, this is ugly then
Glad that you caught it
c
Yea.. really nasty one
p
Would be hell to debug
c
haha yea..
Need to see if it affects 0.7
yep it does
dang
p
This might even be the proper explanation for the issue I was seeing then
c
Yea definitely
p
Very cool
c
Did you have WAL enabled, though?
p
Yes
c
Yep.. that could be it
p
How did you spot it?
c
Was reading over @David Calavera's PR that was attempting to do visibility testing in DST. He had to tweak things in such a way that it made me curious.
d
Iโ€™m glad my silly ramblings are useful ๐Ÿ˜…
c
haha, yea it lead to a ton of stuff.. I need to open an issue about exposing seqnums to end users now too
d
I can take a look at that issue after you open it. Iโ€™m really curious now to finish my PR in a not so hacky way
c
I think it's going to require an RFC, so might be a bit ..
The impl also depends a bit on how we fix the torn batch writes bug we found that @flaneur233 is fixing ๐Ÿ˜… ๐Ÿงถ
p
@criccomini it could be a good candidate for dst right?
If there was an api that could flush memtables in a granular way, we could simulate all possible failure modes properly during flush and crash