Commit Graph
3468 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 97d9746a8c authority: keep the lost range beside the move record, not in it
Fold of the #255 review: a field in the record changed its checksummed
body, so a binary that predates it skipped the whole record and reloaded
the volume unbound. The record body is now unchanged. The forced move's
lost range (kept HEAD frontier, forced barrier) goes to a per-volume side
file that authority loaders never read, written atomically before the
move record; an entry without a matching issued move is ignored. A failed
range write refuses the move. The admission keeps its two original
predicates; the audit bound is computed separately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 02:29:58 -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 28f983bb4c storage, sw-block: prove locally that no process holds a volume
ProbeVolumeUnheld takes and releases the exclusive, nonblocking advisory
lock that every v3 owner holds while its store is open; the kernel drops
it when the owner process exits. nil means no process on this host holds
the volume; ErrVolumeHeld means one does; anything else is unknown (a
non-v3 file is refused: its owner would not take the lock).

`sw-block ops volume-unheld --path P` exits 0 only when unheld (1 held,
2 unknown). The proof is per host and for local filesystems only; host
cleanup must also check that the owner process is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 02:25:50 -08:00
pingqiu fedb6c0f37 durable: retain retryability when classifying observer deadline failures 2026-11-19 02:22:02 -08:00
pingqiu fcea950acd test: preserve retryable expiry through required observer error wrappers 2026-11-19 02:20:53 -08:00
pingqiuandClaude Opus 5.5 adf9b9e2a7 fix(storage): count a truncated map file before its fsync
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 02:18:28 -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 3ffface62a fix(storage): keep map candidates pinned exactly while a slot may name them
A candidate prepared successfully and then refused because its proof
went stale during the prepare's I/O was left in flight until reopen;
both preparation paths now release it before returning
ErrMapCoverageStale.

A publication whose slot write and fsync succeeded but which a fault
latched meanwhile refuses at its success boundary may still be named by
the slot on disk. It is now recorded as uncertain, so its candidate
stays pinned until reopen instead of being released for reuse.

The map's file-size counter now follows every write and truncation.

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
pingqiuandClaude Opus 5.5 26557e3946 authority: a forced move records the upper bound of its lost range
A forced move abandons the old holder's writes after the HEAD frontier
it keeps (already recorded as RemoteLSN). The record now also carries
LostUntilNS: the forced barrier (lease horizon or restart deadline,
whichever is later, plus skew), the latest master time at which any of
those writes can have been acknowledged. It is journaled with the
record; clean moves leave it unset and keep their encoding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 02:03:51 -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
Ping Qiu 21c66a1c21 Merge pull request #231 from seaweedfs/fix/volume-create-capacity-limit
volume: refuse creation above 16 TiB minus 4 KiB
2026-11-19 01:54:40 -08:00
pingqiu 9ba9444f37 test: use the storage block address type in deletion control 2026-11-19 01:53:57 -08:00
pingqiu 7869ee9642 test: retain cold birth metadata through zero-chunk deletion 2026-11-19 01:53:45 -08:00
pingqiuandClaude Opus 5.5 966384d2a8 master: give the exited-holder test room after the lease horizon
The test waits out the real ~45 s horizon; a 60 s budget left ~15 s for
the takeover, cut, detach and delete, which load and -race exceeded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 01:48:55 -08:00
pingqiuandClaude Opus 5.5 898c0fd046 master: test the exited-holder recovery path (forced move, then delete)
A holder that exits never detaches or ACKs, so its live authority keeps
a volume delete refused. The existing path recovers it: after the lease
horizon plus skew a forced move grants epoch+1 on another host, which
claims HEAD, serves the last cut and writes past it, then detaches with
a clean ACK, after which the delete is admitted and later renewals and
moves are refused. Real master runtime and providers, in-memory remote.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 01:48:55 -08:00
pingqiu bf50377c46 fix: report segmented counts and cover versioned segment fuzzing 2026-11-19 01:47:07 -08:00
pingqiu a8eab7b361 test: prepare versioned manifests for catalog caller fixtures 2026-11-19 01:45:07 -08:00
pingqiuandClaude Opus 5.5 aab451d689 test: #253 review fold: witness the guard's installed 300 ms horizon
The expiry case now waits until the host's own lease guard installed a new
deadline less than 1 s ahead (the 3 s grants install about 3 s ahead), read
under the guard's lock, before it stalls renewals; a blocked renewal then
follows. A completed renewal call is no longer taken as an accepted grant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 01:45:06 -08:00
Ping Qiu a6ff3002fd Merge pull request #232 from seaweedfs/fix/detach-abort-resume
durable: a failed detach never leaves the guest frozen (MIGRATION E4)
2026-11-19 01:40:46 -08:00
pingqiu ba3db132b0 test: sustain format3 publication beyond WAL capacity and restore exact bytes 2026-11-19 01:37:45 -08:00
pingqiu 28c61803c8 fix: inherit migration checkpoint births without changing unknown coverage 2026-11-19 01:34:22 -08:00
pingqiu 507a8d2051 docs: bind write-deadline regressions to the admission invariant 2026-11-19 01:33:46 -08:00
pingqiu 5c835e21af test: preserve legacy segments and version snapshot metadata 2026-11-19 01:32:42 -08:00
pingqiuandClaude Opus 5.5 61d1f9bc74 test: #253 review fold: always-admissible probe; witnessed short grant and stalled renewal
- g2Refused's probe uses a fixed lineage above every test epoch, so it is
  always admissible (probes are refused only below the active epoch) and
  its answer cannot depend on what the mutation did. The lineage argument
  is dropped. New TestG1_ProbeHandshakeClassifiesByEffect: an accepted ship
  is visible after the answer, a refused lower-epoch ship never is.
- Host lease expiry case: after a 300 ms grant was served and renewals were
  stalled, wait until a renewal arrived blocked; serial renewals make that
  the witness that the client accepted the 300 ms grant and is not renewed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 01:30:59 -08:00
pingqiu af633299e5 test: bound every v3 pressure-snapshot lock by the write deadline 2026-11-19 01:27:16 -08:00
pingqiu ac02bbc2ac fix: retain inherited BASE birth frontiers including zero 2026-11-19 01:26:52 -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 e5391bea54 feat: capture chunk births under the candidate barrier 2026-11-19 01:23:44 -08:00
pingqiuandClaude Opus 5.5 a72edc364f test: #227: host lease expiry test sets up under a 3 s lease, expires under 300 ms
TestWorkspaceHostLeaseExpiryAndRevokeCloseRealProvider ran every case under a
300 ms lease, so on a loaded runner the lease could expire before the write,
cut or detach steps (detach-then-revoke failed #248's CI). The setup now runs
under a 3 s lease; the expiry case shortens it to 300 ms, waits until one
300 ms grant was served, and only then stalls renewals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 01:23:05 -08:00
pingqiu f92e6da171 test: add format refusal goldens and pending birth frontier regression 2026-11-19 01:22:55 -08:00
pingqiu d6a757b121 test: retry bounded pressure after releasing the catch-up pin 2026-11-19 01:20:38 -08:00
pingqiu 1b5f06291a test: publish segmented data in catalog and fork controls 2026-11-19 01:13:47 -08:00
pingqiuandClaude Opus 5.5 b5f5076070 test: #227 part 2: progress conditions in durable restore, chunk BASE, v3 flusher tests
- durable TestRestoreWaitsForFirstAssignment / TestRestoreDeferredAssignment
  WaitEndsOnDeadlineAndClose: the 2 s test bounds become progress waits; the
  40 ms ChunkAssignmentTimeout under test is unchanged; the limit poll fails
  at once if the backend becomes operational without an assignment.
- TestWALStoreChunk_ExplicitCutRestartsTheTimer: the final wait for the
  automatic cut is a progress wait; the early-cut window check (with its
  slow-host skip) is the timing assertion and stays.
- storage TestChunkLayerV3_BASEBeginDrainsWholeCut: the held-upload, drain,
  settlement and resume waits are progress waits (were 5 s).
- TestWALStoreV3FlusherWritesTheExtentButHoldsTheCheckpointUntilTheMap: stop
  the automatic flusher before writes, as walstore_test does, so the
  simulated crash cannot race its use of the descriptor ('volume locked').

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 01:13:44 -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 8d542549a3 fix: reserve flat HEAD writes for chunk-free roots 2026-11-19 01:10:42 -08:00
pingqiuandClaude Opus 5.5 c88f028cf6 transport: G1/G2 refusal checks by probe handshake, not a read timer
#227: g2Refused gave the listener 500 ms to close a refused connection; a
loaded machine can take longer and the refusal was misread as acceptance.
A probe at the same lineage now follows the frame on the same connection:
the listener handles frames in order, so it either closes (refused) or
answers after the frame's effect (accepted). g1Ship checks the bytes once
after that answer instead of polling for 2 s; g1Barrier drops its deadline.
New TestG1_SlowPersistFailureIsStillARefusal: a persist failure slowed past
the old window is still a refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 01:09:19 -08:00
Ping Qiu f353f605c1 Merge pull request #247 from seaweedfs/test/227-lease
test: workspace-lease family waits by progress, not wall-clock bounds (#227)
2026-11-19 01:07:33 -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 d49f308e92 test: align roundtrip and intent tracing with versioned segments 2026-11-19 01:02:04 -08:00
pingqiu 9d0f99e8d5 test: refuse expired writes before their WAL mutation 2026-11-19 00:59:07 -08:00
pingqiu 66c7dd78cd feat: version segmented HEAD and stored-byte chunk references 2026-11-19 00:58:53 -08:00
pingqiu 8975a00fae Merge root-only HEAD CAS read for format upgrade 2026-11-19 00:55:20 -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