Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
(adversarial review): WAL segment rotation re-creates a missing parent
directory (`mkdir -p <dir>` after an incident no longer leaves the nested
`wal-v3/` dir dead), and any tick-flush failure arms a 1s retry backoff so
no flush error class can ever loop at the 1ms tick cadence again.
no flush error class can ever loop at the 1ms tick cadence again. The
latch is unix-only by design (the non-unix statvfs stub never fails); the
latch-behavior unit test is `cfg(unix)`-gated accordingly.

### Performance
- **Disk-offload: shard event loop no longer pays manifest-commit fsyncs
Expand Down
5 changes: 5 additions & 0 deletions src/shard/disk_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,11 @@ mod tests {
d
}

// unix-only: the non-unix `query_free_bytes` stub always returns `Ok`,
// so the latch (by design) never engages on Windows — this test would
// fail its `dir_lost()` assertion there. The Windows Check job runs on
// main pushes only, so a missing gate here is invisible on the PR.
#[cfg(unix)]
#[test]
fn test_dir_lost_latches_pauses_and_self_heals() {
let d = scratch_dir("latch");
Expand Down
Loading