Commit Graph
1502 Commits
Author SHA1 Message Date
pingqiu aea5f5d88b test: observe mixed-arm counts before the generic overwrite oracle 2026-11-19 00:15:38 -08:00
pingqiu 42d30e0627 test: retire BASE begin hook before completion transition 2026-11-19 00:04:46 -08:00
pingqiu 953d2795b8 test: qualify BASE waiting behind an interrupted upload 2026-11-19 00:01:02 -08:00
pingqiu d67368a989 fix: shorten shared cut retry budget and bound test worker cleanup 2026-11-18 23:59:12 -08:00
pingqiu 9536ab0dd2 test: bound shared staged cut budget and ordinary write progress 2026-11-18 23:57:51 -08:00
pingqiu 3579e6dd42 test: distinguish successful key from failed upload retry 2026-11-18 23:56:33 -08:00
pingqiu 19195503eb chore: keep public PR changes to implementation and tests 2026-11-18 22:57:17 -08:00
pingqiu 62813dc9a8 test(storage): exercise upload retries beyond the WAL with periodic flushes 2026-11-18 22:23:37 -08:00
pingqiu b47b40fadf storage: retain the remote cause when a retry budget ends 2026-11-18 22:20:47 -08:00
pingqiu 92f172006a docs: record bounded cut-upload retry and unchanged publication guards 2026-11-18 22:18:34 -08:00
pingqiu a9d24e4256 storage: resolve lost upload replies before bounded single-object retries 2026-11-18 22:14:03 -08:00
pingqiu dfffdd8088 test(storage): cut upload retry, ambiguous completion and cancellation 2026-11-18 22:12:13 -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
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
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
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
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
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
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
Ping Qiu 4106501a50 Merge pull request #219 from seaweedfs/fix/wal-pressure-terminal-fault
fix: preserve terminal WAL admission faults and strengthen burst readback
2026-11-18 16:51:32 -08:00
pingqiu b88c64cd15 docs: identify the burst caller and pattern controls separately 2026-11-18 16:25:55 -08:00
pingqiu 34a8246970 test: cover terminal fault propagation through a saturated writer gate 2026-11-18 16:24:31 -08:00
pingqiu dffda03239 fix: preserve terminal faults in WAL pressure waits and bind burst bytes to full LBA 2026-11-18 16:23:35 -08:00
pingqiu 1ae48b7939 test: expose terminal fault wait and burst pattern lap alias 2026-11-18 16:22:28 -08:00
Ping Qiu 7e7610e2de Merge pull request #217 from seaweedfs/fix/walstore-v3-admission
fix: honor native v3 WAL pressure and log Flush failures
2026-11-18 16:15:15 -08:00
pingqiu 0ff432fbe9 docs: pin native tail reuse controls in the liveness audit 2026-11-18 16:02:47 -08:00
pingqiu cd5d7db0ed docs: audit v3 admission and reclaim liveness replacements 2026-11-18 15:54:34 -08:00
pingqiu cf888fa844 test: cover native v3 admission liveness across five WAL laps 2026-11-18 15:52:58 -08:00
pingqiu ce1cba2f82 fix: keep missing-writer binding error out of pressure wait 2026-11-18 15:17:39 -08:00
pingqiu 8529530c4b fix: preserve binding refusals before capacity waits 2026-11-18 15:15:15 -08:00
pingqiu 1534404f7f test: use backend buffer read contract in burst oracle 2026-11-18 14:55:12 -08:00
pingqiu 44eea4ee49 fix: use native v3 WAL pressure for write admission 2026-11-18 14:54:00 -08:00
pingqiu ed23f149e2 test: make COW corruption and batch oracles precise 2026-11-18 12:31:01 -08:00
Ping Qiu 61255b94ce Merge pull request #213 from seaweedfs/test/wal-v3-wrap-forged-replay
storage: end-to-end v3 wrap/forged-replay test; spec open items 1-2 resolved in v3
2026-11-18 12:15:34 -08:00
pingqiu cd6dff4f67 storage: copy native chunk cut images outside the write barrier
Fix H and candidates under the short barrier; save pending chunks before mutation.
Drain owners and waiters before cleanup, recovery, reset and close. Preserve
intent/CAS and local durability contracts. Include native caller controls,
existing model correspondence and a real-mount rehearsal note.
2026-11-18 12:05:39 -08:00
pingqiuandClaude Opus 5.5 83eb3d3d93 storage: end-to-end v3 test of the wrap/forged-replay scenario; spec open items 1-2 resolved in v3
TestWALStoreV3StaleLapBytesAtTheWrapAreNotReplayed replays the forged
replay reproduction (docs/spec/README.md, open item 2) end to end on a
mapped v3 WALStore: a guest batch in lap 1 carries a well-formed record
bound to the volume's own nonce at its lap-1 cursor (LSN 999, LBA 7); the
WAL wraps so one newer record overwrites only the batch's start and the
lap-2 scan resumes exactly at the embedded record. The cursor binding
stops the scan there; after a crash and reopen the frontier is the newest
real LSN and LBA 7 is never the forged data. With the lap dropped from the
cursor check the scan admits the record and the test fails.

README: open items 1 (corrupted synced records) and 2 (forged replay) move
to "resolved in v3 (code)", citing the v3 tests. Still open: the mode C
newest-batch residual (silent truncation until an idle refresh or
SetWMode(A)) and the TLA model, which has no nonce/cursor/lap binding
(S3v1_root_lww_I1 and S3f_* rerun on cc5cf09a with TLC 2.19: unchanged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 11:18:58 -08:00
Ping Qiu cc5cf09af0 Merge pull request #212 from seaweedfs/refactor/remove-production-c11-bitmap
Remove production C11 file bitmap persistence
2026-11-18 09:34:45 -08:00
Ping Qiu bcd86f6659 Merge pull request #211 from seaweedfs/fix/rf1-write-log
replication: drop the per-write INFO line at RF=1 (#204)
2026-11-18 09:34:34 -08:00
pingqiu 3987ae0e52 test(storage): retain C11 fixture evidence outside production graph 2026-11-18 08:14:54 -08:00
pingqiu b0ff0c21a6 refactor(storage): remove production C11 file bitmap store 2026-11-18 08:14:18 -08:00
pingqiu c76b5c6d6f test(storage): forbid production C11 file persistence 2026-11-18 08:12:04 -08:00
pingqiuandClaude Opus 5.5 7fab4770c2 replication: drop the per-write INFO line from the local write path (#204)
At RF=1 every local write logged 'replication: OnLocalWrite volume=...
lba=... lsn=... peers=0'; under sustained writes one volume's log grew to
162 MB in 13 minutes and the useful lines were buried. The counters (Stats:
WriteOps, WriteFanoutNanos) keep the per-write evidence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 08:09:06 -08:00
pingqiuandClaude Opus 5.5 cfbec68926 replication: RED: a local write must not log one line per write (#204)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 08:08:35 -08:00
Ping Qiu 56af794492 Merge pull request #197 from seaweedfs/feat/walstore-format-v3
storage: walstore format bump v3 (#51, #189)
2026-11-18 08:07:17 -08:00
Ping Qiu 7a5abaa02e Merge pull request #208 from seaweedfs/activate/format-v3-12b-r2
feat(storage): activate mapped walstore v3 on the reclaimed-WAL base
2026-11-18 07:55:34 -08:00