Commit Graph
374 Commits
Author SHA1 Message Date
pingqiu 4c7dd6e749 docs: record cut retry deadline and causal controls 2026-11-19 20:26:18 -08:00
pingqiu 69072a0c27 fix: let bounded upload workers advance independently 2026-11-19 20:21:14 -08:00
pingqiu 260921eef3 fix: validate saved WAL blocks into the owned chunk buffer 2026-11-19 20:17:47 -08:00
pingqiu f87f513bdf test: cover cut abort status and named snapshot failure 2026-11-19 20:16:35 -08:00
pingqiu ed5d4369e7 docs(storage): define budget admission and revocation lifetime 2026-11-19 20:16:35 -08:00
pingqiu 6caa8699cb docs(storage): describe the configurable cut payload bound 2026-11-19 20:16:35 -08:00
pingqiu df5d3a6d7d storage: keep zero-data guest writes progressing without aborting updates 2026-11-19 20:16:35 -08:00
pingqiu bc73b9920a storage: let local reads re-resolve across flushing without pinning WAL 2026-11-19 20:16:35 -08:00
pingqiu 2717e4ec69 storage: bind chunk capture and flush contracts to the local borrow lifetime 2026-11-19 20:16:35 -08:00
pingqiu 0c02f20eac storage: document adaptive staging contracts and exercise steady hot writes 2026-11-19 20:16:34 -08:00
pingqiu 48b4c0cc18 storage: refuse regressed frontiers before streaming payloads 2026-11-19 20:16:34 -08:00
pingqiu e94aac6faf storage: document streamed cut ownership and cover held remote saves 2026-11-19 20:16:34 -08:00
pingqiu 8e42479b77 docs: place payload resource contract in the invariant ledger 2026-11-19 20:16:34 -08:00
pingqiu ae8faa3fcb docs: bind cut payload limits to the resource regressions 2026-11-19 20:16:34 -08:00
pingqiu 2ac398fdd6 docs: tie snapshot refusal to the rebuild machine 2026-11-19 16:03:15 -08:00
pingqiu 590337c058 test: witness the RMW fence before actual caller expiry 2026-11-19 16:03:15 -08:00
pingqiu add6fc6e3d docs: bind hydration and rebuild error regressions in ledger 2026-11-19 16:03:15 -08:00
pingqiu a3bc6aa51f docs: align hydration diagram with caller and worker lifetimes 2026-11-19 16:03:15 -08:00
pingqiu 731f278542 storage: fail rebuild snapshots on read faults and preserve RMW fencing 2026-11-19 16:03:15 -08:00
pingqiu cf917925f7 record shared hydration wait and close invariants 2026-11-19 16:03:15 -08:00
Ping Qiu ecc1a6ef64 Merge pull request #256 from seaweedfs/feat/chunk-manifest-format3
feat(chunkstore): version chunk manifests with encoding and birth frontiers
2026-11-19 14:34:43 -08:00
pingqiu b99e081cf2 docs: restore UTF-8 invariant ledger with cut birth rule 2026-11-19 13:47:38 -08:00
pingqiu 4bee2d1192 docs: record recovery-bounded cut birth invariant and regression 2026-11-19 13:46:33 -08:00
Ping Qiu 3a2147dac7 Merge branch 'main' into fix/takeover-read-before-chunk-attach 2026-11-19 13:12:53 -08:00
Ping Qiu 152087abf0 Merge branch 'main' into work/checkpoint-proof-progress-controls 2026-11-19 09:35:54 -08:00
Ping Qiu 9486bad3f2 Merge branch 'main' into fix/write-command-budget 2026-11-19 08:13:55 -08:00
pingqiu c8abeec62d docs: place readiness invariant in the frontend ledger 2026-11-19 07:36:47 -08:00
pingqiu 486289c30a fix: wait for chunk attachment before admitting takeover reads and writes 2026-11-19 07:30:15 -08:00
Ping Qiu b7af4c8e8c Merge pull request #260 from seaweedfs/fix/move-refusal-reasons
master: name a refused move's precondition; allow any port on the target host
2026-11-19 07:14:06 -08:00
Ping Qiu 3c4195c3af Merge branch 'main' into fix/write-command-budget 2026-11-19 07:10:04 -08:00
pingqiu dcf85fb41f fix(durable): wait for chunk read readiness before host retries 2026-11-19 07:07:58 -08:00
pingqiu bdf45a43f8 fix(nvme): retry reads while the backend is not ready 2026-11-19 06:48:12 -08:00
pingqiuandClaude Opus 5.5 ec40814443 master: validate a move target's endpoints; log a refusal outside the lock
Fold of the #260 review:
- the target endpoints get the binding endpoint rules before admission
  (host:port, numeric port 1..65535, data and ctrl distinct), without
  registering anything: a host match alone admitted ':0', ':65536', a
  non-numeric or empty port, or identical data and ctrl, and the move
  would have issued and cleared the source lease;
- host parts compare in canonical form (equivalent IP spellings);
- the refusal log runs after workspaceMu is released;
- the comment no longer calls the host match a proof; the invariants
  ledger gets the move-admission row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 05:34:16 -08:00
pingqiuandClaude Opus 5.5 5eeb4ddf6e storage: #252 fold: the WAL writer checks the command budget before its first payload write
Review fold (codex01 r4 residual P1): the post-rollover check still preceded
w.append's descriptor snapshot, writer lock wait and encoding; a concurrent
Sync's slot write can hold the descriptor lock (without the store lock)
until the command expires. walWriterV3.append now takes the budget and
checks it after those waits and the encoding, before the first physical
write (no cancellation of a write already started). Red test:
TestWALStoreV3WriteBudgetRefusesAfterDescriptorWaitBehindSync (a real Sync
parked at its leader point, released after the write's rollover snapshot,
holding the descriptor lock in its slot write until expiry).

P2: codex03's TestWALStoreV3WriteBudgetRechecksAfterRollover (real pinned
fallback, rollover slot I/O held/faulted; expired/healthy/fault) and
TestWALStoreV3LocalBudgetIncludesWitnessedCaptureWait from his local
amendment evidence; test cleanup joins are bounded; the invariant ledger
names the current tests and the short-lock/writer-budget rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 03:51:25 -08:00
pingqiu 370be25e94 test(storage): isolate cut proof invalidation from map generation 2026-11-19 03:13:45 -08:00
pingqiu 194f1552e2 test(storage): cover no-sync pressure and speculative prefix boundaries 2026-11-19 03:05:35 -08:00
pingqiu 4129cc3668 test(storage): compose checkpoint diagnostics with prefix and extent guards 2026-11-19 02:45:22 -08:00
pingqiu b97352083a storage: print the stable checkpoint refusal reason 2026-11-19 02:44:46 -08:00
pingqiu c728fb4191 test(storage): cover prefix proofs across rollover and hydration 2026-11-19 02:42:15 -08:00
pingqiu 186c7a0897 fix(storage): preserve exhausted proof-counter refusal on append 2026-11-19 02:42:15 -08:00
pingqiu 7887101d26 docs: record prefix proof regression coverage 2026-11-19 02:42:14 -08:00
pingqiu 2d6d97112a docs: record observer deadline classification and I/O ownership coverage 2026-11-19 02:27:05 -08:00
pingqiuandClaude Opus 5.5 bfd07d85cb docs(invariants): list the owned-map extent-reuse regressions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 02:18:28 -08:00
pingqiuandClaude Opus 5.5 042a201651 fix(storage): bound the v3 owned-map file by reusing unreferenced extents
New map pages and roots go into 4 KiB extents that no live root
references, lowest first, instead of always being appended. Live roots
are the roots named by the two descriptor slots and every prepared
candidate not yet published or superseded. After each publication the
publisher reports both slots; an extent is released only once neither
slot's root references it. New pages and the root are fsynced before a
publication names them. The free tail is truncated when the file
exceeds 4x the live bytes. The on-disk format is unchanged.

WALStore.ChunkMapStatsV3 reports the file bytes, live bytes and
truncations.

Fixes #236.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 02:18:28 -08:00
pingqiu 1fd87df519 docs: bind deadline and physical-fault status to FUA regression coverage 2026-11-19 02:05:20 -08:00
pingqiu 507a8d2051 docs: bind write-deadline regressions to the admission invariant 2026-11-19 01:33:46 -08:00
pingqiu fd21402598 test: retain retryable pressure completion and command latency checks 2026-11-19 01:06:15 -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
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 41b6783a95 docs: integrate local reclaim liveness model and mutant configs 2026-11-18 19:40:20 -08:00