Store v1: Report writes refused because the journal can't be trimmed #181

Open
koolkhel wants to merge 3 commits from koolkhel/vitastor:v1-journal-full-log into master

3 Commits

Author SHA1 Message Date
0089da9e19 Store v1: Fail the test of a write over a flushing deletion if its race isn't set up
Without the journal trim held after the flush of the deletion, the flusher
drops the stale queue entry before the write over the deletion becomes
stable, and the test passes without testing anything.
2026-11-25 05:56:26 +03:00
e8e84fe556 Store v1: Test a write over a deletion which is being flushed
Before 4ee30fa7 such a write queued the deletion for flushing once more.
The stale queue entry hid the flush of the write itself, the write kept
the journal from being trimmed, and once the journal was full every
write failed with EAGAIN until a restart.
2026-11-24 23:27:46 +03:00
0d3f47a168 Store v1: Report writes refused because the journal can't be trimmed
The old store refuses writes with EAGAIN when its journal is full and
nothing in it can be flushed, and only logs it with log_level > 5.
Clients retry such writes, so an OSD could refuse writes for hours with
nothing in its log.

Print a line about it at most once in 10 seconds, with the number of
objects with unstable writes and the oldest journal entry still in use.
An unstable oldest entry waits for its primary OSD to stabilize or roll
it back, a stable one is a lost flush.
2026-11-24 23:27:46 +03:00