Store v1: Don't let a sync of an older big write unblock later small writes #129

Merged
vitalif merged 1 commits from koolkhel/vitastor:chaos-seed-133 into master 2026-11-19 15:25:29 +03:00

1 Commits

Author SHA1 Message Date
3363bc75ae Store v1: Don't let a sync of an older big write unblock later small writes
A small write following an unsynced big write waits in WAIT_BIG until
that big write is synced, because a big write only gets its journal
entry from the sync. ack_sync() unblocked every WAIT_BIG write of the
object after any synced big write, including the ones waiting for a
newer big write which that sync didn't cover. Their journal entries
could then reach the disk before the newer big write's entry, and after
a crash the replay put them on top of the older big write, giving a
version that was never written.

Stop unblocking at the next big write of the object: its own sync
unblocks the small writes after it.

Found by test_blockstore_chaos --seed 133 --config 17
2026-11-18 12:00:52 +03:00