Commit Graph
1528 Commits
Author SHA1 Message Date
pingqiu 1fd87df519 docs: bind deadline and physical-fault status to FUA regression coverage 2026-11-19 02:05:20 -08:00
pingqiu e723a2a4fb nvme: identify command expiry separately from capacity pressure 2026-11-19 01:59:57 -08:00
pingqiu 8e546f7fe3 nvme: retry pure command deadline expiry without masking physical faults 2026-11-19 01:57:10 -08:00
pingqiu b8f9903545 test: keep write and FUA deadline expiry retryable on the wire 2026-11-19 01:55:09 -08:00
pingqiu 507a8d2051 docs: bind write-deadline regressions to the admission invariant 2026-11-19 01:33:46 -08:00
pingqiu af633299e5 test: bound every v3 pressure-snapshot lock by the write deadline 2026-11-19 01:27:16 -08:00
pingqiu d89865366c test: observe terminal faults at the actual semaphore wait 2026-11-19 01:26:07 -08:00
pingqiu cd6e957eaa storage: apply write deadlines to admission pressure snapshots 2026-11-19 01:24:33 -08:00
pingqiu d6a757b121 test: retry bounded pressure after releasing the catch-up pin 2026-11-19 01:20:38 -08:00
pingqiu 2617ed456c storage: bound write admission lock waits without detached lockers 2026-11-19 01:12:46 -08:00
pingqiu 209d626b15 nvme: include capsule receipt and queued time in the write deadline 2026-11-19 01:11:20 -08:00
pingqiu fd21402598 test: retain retryable pressure completion and command latency checks 2026-11-19 01:06:15 -08:00
pingqiu 9b53a8a9e1 storage: preserve the write command deadline through admission 2026-11-19 01:04:46 -08:00
pingqiu 9d0f99e8d5 test: refuse expired writes before their WAL mutation 2026-11-19 00:59:07 -08:00
Ping Qiu 4c9714b49b Merge pull request #244 from seaweedfs/fix/lease-refusal-race
authority: read the lease view under leaseMu in the renewal refusal (#242)
2026-11-19 00:50:19 -08:00
Ping Qiu 325c7555f7 Merge pull request #230 from seaweedfs/fix/manifest-base-group-scan
chunkstore: partition base references once for manifest preparation
2026-11-18 23:34:57 -08:00
pingqiuandClaude Opus 5.5 01a118036f authority: read the lease view under leaseMu in the renewal refusal (#242)
The no-host-validity refusal in RenewWorkspaceLease formatted its error
from lv.d.horizon after releasing leaseMu, while the extender
(refreshLeaseViewLocked) rewrites the view under leaseMu: a data race.
The horizon is now read before the unlock.

Test: TestWorkspaceLeaseRefusalReadsTheViewUnderTheLock drives the
refusal while the view is republished concurrently; under -race it fails
on main (workspace_lease_view.go:174) and passes here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:00:20 -08:00
pingqiu 6de4d89a98 chore: keep public PR changes to implementation and tests 2026-11-18 22:57:06 -08:00
Ping Qiu 367617c14b Merge pull request #222 from seaweedfs/fix/v3-local-pressure-sync
fix: reclaim native WAL under pressure without guest Flush
2026-11-18 22:15:34 -08:00
pingqiu ebe1b0bd13 test: include reproducible manifest scaling qualification checker 2026-11-18 21:50:16 -08:00
Ping Qiu 8e5f913a4a Merge pull request #225 from seaweedfs/fix/cow-cut-spill-cap
storage: cap the cut COW spill file; a save past the cap aborts the cut (#216 follow-up P3)
2026-11-18 21:16:27 -08:00
pingqiu cfdb77f855 test: quiesce flusher before WAL-only simulated crash 2026-11-18 21:10:29 -08:00
pingqiu 766596ffd7 docs: record manifest base partition cost invariant 2026-11-18 21:07:15 -08:00
pingqiu 1f36db305f fix(chunkstore): partition base manifest chunks once per preparation 2026-11-18 21:06:23 -08:00
pingqiu fcb170c8d8 test(chunkstore): measure unchanged manifest group scaling 2026-11-18 21:00:46 -08:00
Ping Qiu 8b5b5b98ec Merge pull request #224 from seaweedfs/fix/cow-cut-pause-timing
storage: cut barrier pause counts the lock wait; report LockWaitNs (#216 follow-up P2)
2026-11-18 20:55:31 -08:00
pingqiuandClaude Opus 5.5 ea0b8955dc storage: cap the cut COW spill file; a save past the cap aborts the cut (#216 follow-up P3)
Past the 64 MiB in-memory budget a copy window spills saved chunks to a
sparse side file next to the volume, with no byte limit: under a long copy
and steady writes it could fill the filesystem under the WAL/extent.

New chunkLayerConfig.COWSpillLimit (bytes; 0 defaults to 1 GiB, negative
refused at attach). A save that would take the side file past it aborts the
window (errCutCOWAborted, the caller retries the cut) instead of writing;
the guest write still completes.

Tests: a save past the cap aborts the cut, the write completes and no side
file is written; a spill within the cap is accounted (one chunk) and the cut
completes; the default applies and a negative cap is refused. Four declared
mutants (no cap, no accounting, no default, negative accepted) each turn
exactly their declared tests red.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 20:39:50 -08:00
Ping Qiu 7e39a9ce32 Merge pull request #223 from seaweedfs/fix/cow-cut-no-remote-wait
storage: cut COW never fetches under a guest write (#216 follow-up P1)
2026-11-18 20:33:16 -08:00
pingqiu 9c65af4c5a test repro: record goroutines at no-Flush admission timeout 2026-11-18 20:25:52 -08:00
pingqiuandClaude Opus 5.5 bc5e3e6446 storage: P2 review fold: Lock-request handshake, bounded test helper, design wording
- A test-only hook right before the capture barrier's Lock request; the
  pause tests hold the barrier shared for 300 ms after that handshake (not
  after admission plus a sleep), so the cut provably waited at its Lock and
  pre-barrier time is excluded.
- The helper releases the shared hold on every path (also on a failed
  assertion) and joins the cut within a bound.
- Design docs: barrierPauseNs runs from the Lock request and includes
  lockWaitNs.

Mutants (declared, 4/4): pause timed after the Lock, lock wait unset, body
drops the field, the hook fired after the Lock (no handshake).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 20:22:30 -08:00
pingqiu e1abfa4aee test: observe pressure lock progress before physical fsync 2026-11-18 20:09:09 -08:00
pingqiuandClaude Opus 5.5 377ed5fcff storage: COW P1 review fold: fill abort/timeout and spill coverage, handshake, comments
- Tests: the copier's HEAD fill (after it released the entry) is
  cancelled by an aborted cut and the window drains; a held fill is
  bounded by ReadMissTimeout and aborts the cut; a lazily-absent saved
  chunk that spills keeps its missing list and the image is exact.
- C3 waits for an actual writer-entry handshake (the writer parked on the
  copy entry) instead of a 200 ms non-completion window.
- Comments: the happens-before of e.missing (published by finish), and
  the lazy-HEAD saver test describes the local-only save.

Mutants (declared): fill ignores the window's end, fill without
ReadMissTimeout, missing list kept only for in-memory saves; the earlier
five now also turn the new fill/spill tests red where they should.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 19:59:25 -08:00
pingqiuandClaude Opus 5.5 9302f31e48 storage: cut barrier pause counts the lock wait; report LockWaitNs (#216 follow-up P2)
BarrierPauseNs started after captureMu.Lock returned, so the wait for
writers already holding the capture barrier shared (e.g. parked in WAL
admission) was not counted, although a pending Lock already blocks new
writers: the reported guest pause understated it.

The pause is now timed from the Lock request, and LockWaitNs reports the
wait for the shared holders on its own (also in the /chunk/cut body).

Tests: a cut whose barrier is held shared for 300 ms reports a pause that
includes the wait (red on main: about 24 ms) and a LockWaitNs of about the
hold, inside the pause before the sync. Three declared mutants (pause timed
after the Lock, lock wait unset, body drops the field) each turn exactly
their declared tests red.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 19:47:49 -08:00
pingqiu f0b11521af fix: keep idle flusher map preparation outside the sync leader 2026-11-18 19:45:34 -08:00
pingqiuandClaude Opus 5.5 623c11da4c storage: cut COW never fetches under a guest write (#216 follow-up P1)
A cut candidate chunk that is lazily absent but has local writes stays a
candidate. Its first writer inside the copy window saved the chunk
synchronously through Read, so every non-local block became a remote fetch
bounded only by ReadMissTimeout (30 s), and every writer queued behind that
chunk waited on it; an abort did not cancel the fetch. The in-window copier
had the same shape: writers to a chunk it was copying waited on its fetch.

The COW save and the in-window copy now read LOCAL blocks only (dirty
map/WAL, the extent of present or locally written blocks, zeros for a chunk
HEAD stores as ZERO) and never call the miss hook. A lazily-absent block's
image at H is HEAD's by definition: it is listed as missing, and the copier
fills it from the cut's base HEAD after it has released the entry, off the
write path (bounded by ReadMissTimeout and the window's end).

Tests: the lazy-HEAD saver test now holds every remote fetch once the window
is open and requires the saving write to finish without one (it asserted the
blocking fetch before); C3 holds the in-window local copy instead of a fetch
and requires the write to complete with the remote held, the copier's HEAD
fetch coming afterwards. Five declared mutants (blocking read, absent block
read as local, no fill, saver drops the missing list, fill under the entry)
each turn exactly their declared tests red.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 19:42:43 -08:00
pingqiu 41b6783a95 docs: integrate local reclaim liveness model and mutant configs 2026-11-18 19:40:20 -08:00
pingqiu e6a15049e9 test: preserve active RF2 history across local pressure persistence 2026-11-18 19:28:21 -08:00
pingqiu 8dc31143b6 test: count native batch record I/O separately from validated blocks 2026-11-18 19:26:05 -08:00
pingqiu dccd185ba7 test: exercise native pressure budget and COW Close admission 2026-11-18 19:25:15 -08:00
pingqiu bb17d7a835 docs: bind pressure progress to durability and lifetime invariants 2026-11-18 19:24:08 -08:00
pingqiu 08d6f82903 fix: bound native batch materialization work during pressure flush 2026-11-18 19:22:08 -08:00
pingqiu 7e9f07818a test: cover pressure locks faults pins retry status and native burst 2026-11-18 19:18:12 -08:00
pingqiu 8c16952789 Merge commit 'b6ca5237' into fix/v3-local-pressure-sync 2026-11-18 19:16:53 -08:00
pingqiu 458852ba4f fix: surface bounded pressure as retryable NVMe readiness 2026-11-18 19:16:52 -08:00
Ping Qiu b6ca5237fd Merge pull request #216 from seaweedfs/feat/cut-cow-native
storage: move native chunk cut copying outside the write barrier
2026-11-18 19:16:05 -08:00
pingqiu 44116eece6 fix: persist native WAL under local pressure without guest Flush 2026-11-18 19:02:18 -08:00
pingqiu d75dbd51c6 test: require local v3 reclaim without any client Sync 2026-11-18 19:01:36 -08:00
Ping Qiu 82f06ed7be Merge pull request #220 from seaweedfs/test/admission-waiter-inventory-followup
test: synchronize admission waiters and clarify replacement coverage
2026-11-18 18:04:30 -08:00
pingqiu 77b96d025d test: synchronize existing admission waiters and mark partial v3 replacement coverage 2026-11-18 17:35:32 -08:00
pingqiu 761882ba82 Merge native WAL admission fixes into COW cut branch 2026-11-18 17:13:37 -08:00