Commit Graph
4842 Commits
Author SHA1 Message Date
pingqiu 0a6d952817 Guard mixed snapshot stamps and surviving sibling identities 2026-12-01 13:05:27 -08:00
Ping Qiu 4b96d9940b Merge pull request #892 from seaweedfs/test/hostlimit-window-bound
hostlimit: test, the no-progress window bound starts at the admission
2026-12-01 12:59:54 -08:00
pingqiu ee3c3e493d Register snapshot incarnation trace in invariant ledger 2026-12-01 12:58:27 -08:00
pingqiu 69cd920b13 Add snapshot incarnation codecs and target-qualified delete helpers 2026-12-01 12:57:02 -08:00
pingqiuandClaude Opus 5.5 204c2132f2 authority: the line index check is exact both ways
Every per-volume read in the package's tests now checks the whole index
against the whole state: every state key indexed, every indexed key in the
state, no empty volume set, and the read equal to the scan. Negative
controls: a stale extra entry, a missing entry, an empty set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:46:08 -08:00
pingqiuandClaude Opus 5.5 975628e853 hostlimit: test, the no-progress window bound starts at the admission
The window's timer starts inside Admit; a first admission publishes and
syncs the host configuration, which a loaded runner can stretch to
hundreds of milliseconds. The upper bound is now measured from Admit's
return; the lower bound still from before it. The failure message prints
the admission's duration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:39:46 -08:00
pingqiuandClaude Opus 5.5 e44aba0ed6 storage: a v1.1 cut copies HEAD's chunks for its candidates only
On the v1.1 format a cut's base is HEAD's identity and its candidates'
references (cutBaseLocked), the commit sends identity plus the change set,
and a landed commit is applied to HEAD in place (applyCommitLocked): O(C)
where the base, the proposal and the install each copied every chunk. A
no-op cut compares its captured chunks with the by-change rule less the
generation. The cut's result still reports the whole installed HEAD (one
copy after the settlement, until the flat map goes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:39:30 -08:00
pingqiuandClaude Opus 5.5 d7377311f2 hostlimit: fetch test ownership and the waiting-path control
- The fetch child keeps its release (and so the slot's file) reachable
  while it lives, with forced collections before it reports HELD.
- The ended-waits test registers every release at once, and its second
  half frees the other slot only once each fetch is already waiting, so
  the waiting path's success is what is checked.
- The competing fetches derive from a cancellable context, and cleanup
  joins them within a bound.
- Comments: one fetch polls per limiter (blockvolume makes one per
  process); a configuration check in progress can add its bounded guard
  wait after the context ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:32:20 -08:00
pingqiuandClaude Opus 5.5 1febcbcedb authority: a per-volume line index; a call reconciles only its volume's bindings
The publisher indexes its lines by volume, kept by the one writer of its
state, so every per-volume read (the workspace line, the authority line,
the bound replica, the published epoch, the promotion basis) costs the
volume's replicas, not every line. A register, ACK or move reconciles the
bindings of its own volume and of any volume whose reconcile failed before;
the start still reconciles every volume.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:24:19 -08:00
Ping Qiu 4063be8def Merge pull request #888 from seaweedfs/test/v11-golden-bytes
storage: golden bytes for the v1.1 record, pass cursor and coverage map
2026-12-01 12:22:08 -08:00
pingqiuandClaude Opus 5.5 ea127a0181 hostlimit: fetch waits are non-blocking, checked and bounded
- A limiter's first fetch checks the host configuration under
  configuration.lock, publishing it when absent (configGuard, now shared
  with cut admission): a fetch-only process with other flags gets ErrConfig.
- No blocking lock: with every slot held, one fetch per process polls
  every slot each 20 ms (the others wait for its turn, within their
  context). An ended wait leaves no lock request, descriptor or goroutine;
  lockBlocking is removed.
- The waiting is unordered and bounded by the caller's context alone; the
  docs say so instead of promising a kernel queue.
- A slot taken when the context has already ended is given back, with the
  context's error.
- INV-HOST-FETCH-CAP-001, M7 and the v1.1 note state the contract.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:20:40 -08:00
pingqiuandClaude Opus 5.5 2d2e05ba43 hostlimit: red tests, fetch config check, ended waits and handoff cancel
- A fetch-only start must publish and check the host configuration: a
  child process with FetchSlots 2 fetches first, and a FetchSlots 1 fetch
  must answer ErrConfig (fails: no configuration is published).
- Waits that end at their deadline, or by taking another slot, must leave
  no goroutine or descriptor behind while their slot stays held (fails: 40
  blocked lock waits remain).
- A context that ends as a slot is taken must get its error, slot given
  back (fails: the slot is handed over). Seam: testFetchLocked.
- Controls: a killed child's slot is freed; a waiter passed by others ends
  by its deadline (the waiting is unordered, bounded by the context).
- The same-process cap test is renamed AcrossLimiters; holdAsync joins and
  releases its wait in cleanup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:11:54 -08:00
pingqiuandClaude Opus 5.5 b51e59711f storage: a v1.1 commit settles by its change, not whole chunk maps
On the v1.1 format an unresolved commit is found landed by
sameProposalByChange over its change set and the captured chunks it left
as they were (commitMarks), kept beside the pending change set; the v1.0
format and the no-op cut keep the full comparison. A landed commit whose
reply was lost settles although an index it neither changed nor captured
differs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:03:14 -08:00
pingqiuandClaude Opus 5.5 5a57e8564d hostlimit, storage: chunk fetches are capped per host
- hostlimit: Config.FetchSlots (default 64, files fetch-0..N-1 in the pool).
  HoldFetch takes a free slot without waiting, from the key's hash slot;
  with every slot held it blocks on its hash slot (the kernel queues the
  waiters) and tries the other slots every 20 ms, using whichever lock comes
  first and releasing the other; its context bounds the wait, and a lock got
  after that is released at once. lockBlocking on Unix and Windows.
- storage: BudgetFetch; fillOnce holds one slot across its remote read only
  (a read miss and a hydrate-all fill alike); a context error on the wait is
  the hydration path's pending, as before.
- blockvolume: --host-limit-fetch-slots. Invariants: INV-HOST-FETCH-CAP-001;
  M7 states it. v1.1 notes carry it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:52:37 -08:00
pingqiuandClaude Opus 5.5 9391166b25 hostlimit, storage: red tests, a per-host cap on chunk fetches
Seams: Config.FetchSlots (default 64), fetchSlot (a key's hash slot),
Limiter.HoldFetch (no cap yet) and storage.BudgetFetch.

- TestHoldFetchCapHoldsAcrossProcesses: with every slot held by other
  processes, a fetch waits until one is released, then takes it. Fails here.
- TestHoldFetchAWaiterThatGivesUpLeavesNoSlotHeld: a waiter past its context
  returns the context's error, and a slot it gets after is released at once.
  Fails here.
- TestHoldFetchTakesAnotherSlotThatFreesFirst: a waiter behind a slow holder
  of its own hash slot takes another slot within one retry interval of its
  release. Fails here.
- TestHoldFetchTakesAFreeSlotAtOnce: a fetch with a free slot does not wait
  (holds here, must keep holding).
- TestChunkFetchHoldsAHostSlotAroundItsRemoteRead: a chunk fetch holds one
  slot exactly across its remote read. Fails here: none is held.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:43:59 -08:00
pingqiuandClaude Opus 5.5 ff41808326 storage: a mark may name an absent base (zero chunk equal to nothing)
The cut marks a zero chunk equal to an absent base; marked now takes the
shape of changes (nil: cur must name nothing there), so a landed proposal
with such a mark is judged landed and one where cur names a reference is not.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:29:36 -08:00
pingqiuandClaude Opus 5.5 0eb8f0e174 storage: sameProposalByChange, the O(C) "proposal landed" decision (not wired yet)
A commit by change landed iff HEAD's generation is past the expected
base, every identity field the full comparison has is equal, every
changed index names the new reference (nothing for a zeroing) and every
candidate the cut marked equal names the base reference its mark
assumed; unchanged, unmarked indices are not compared. The rule is
SegCut's existing decision (no new row). TestSameProposalByChange: each
condition broken alone is not landed, a replay is landed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:22:37 -08:00
pingqiuandClaude Opus 5.5 32f9366542 ci: vet and test each lab tag alone and both together
The draft v1.1 format tag is now separate from the 256 GiB cap lift, so
the lab-tag step builds and tests swblock_lab_bigvol, swblock_v11_format
and both, and runs the format-tag test under each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:16:50 -08:00
Ping Qiu cf31d2ec4e Merge pull request #396 from seaweedfs/feat/host-tickets
hostlimit: timer cuts wait in ticket order; pacing uses the budget over held slots
2026-12-01 11:16:06 -08:00
pingqiuandClaude Opus 5.5 f230a1678d storage: golden bytes for the v1.1 record, pass cursor and coverage map
The chunk record's page and header, the upgrade pass cursor, and the
coverage map's two leaves, index page and root are pinned byte for byte:
each encodes to its fixture, each fixture decodes to its input, and the
fixtures are pinned by SHA-1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:13:54 -08:00
pingqiuandClaude Opus 5.5 73ec053d7f build: the draft v1.1 store format gets its own tag, apart from the cap lift
swblock_v11_format now turns on the draft v1.1 store format;
swblock_lab_bigvol lifts only the create cap and the headroom refusal.
A build with the format tag names itself in its revision
("LAB BUILD(swblock_v11_format)"), so the image refusal keys on it as it
does on the cap tag, and the CI tag check refuses either tag outside its
allowlist. CI tests each tag alone and both together.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:12:42 -08:00
pingqiuandClaude Opus 5.5 970d925fce durable: a requeued turn stays at the back until a cut succeeds
requeue is set by an admitted attempt that fails and cleared only by a
success: a wait, a refusal or a dropped ticket (a reconcile, a pause) leaves
it set, so every later ticket of the turn is taken at the host's now.
INV-HOST-TICKET-REENTRY-001 states it and names the test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:54:03 -08:00
pingqiuandClaude Opus 5.5 cecdc3e858 durable: red test, a requeued turn stays at the back across a wait and a drop
TestChunkLoop_ARequeuedTurnStaysAtTheBackAcrossAWaitAndADrop: a cut admitted
on its ticket fails, its retry waits (not the head) on a tail ticket, and a
reconcile then drops it; the next ticket must not be earlier than the tail
one. Fails here: an unadmitted result clears requeue, so the new ticket is
back at the schedule's old due time, ahead of the cuts that queued meanwhile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:54:03 -08:00
pingqiuandClaude Opus 5.5 1a3ab72b7d hostlimit, durable: ticket order holds on retry and refusal
- the cut loop: an attempt admitted on its ticket that then fails retries on
  a fresh ticket at the back of the queue (the host's now), never at its
  schedule's earlier due time; a failed ticket creation is a wait (no cut,
  the reason in status, the next poll tries again), never an un-ticketed cut.
- the limiter: an urgent admission refused after taking its urgent-pending
  hold closes the hold, so no Normal admission stays refused for it.
- tests: the new concurrent tests and the ticket tests end their workers
  with a bounded join on every path, a failing assertion too.
- invariants: INV-HOST-TICKET-REENTRY-001; the urgent row names its test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:54:03 -08:00
pingqiuandClaude Opus 5.5 9533d41b24 hostlimit, durable: red tests, ticket order holds on retry and refusal
- TestChunkLoop_AConsumedAttemptRetriesAtTheBack: a cut admitted on its
  ticket that then fails after staging is retried on a fresh ticket at the
  back. Fails here: the retry's ticket is due at the schedule's old time
  (even earlier than its first one), ahead of every cut that waited.
- TestChunkLoop_NoTicketNoCut: a timer cut that cannot take a ticket must
  not cut un-ticketed. Fails here: it cut twice.
- TestRefusedUrgentAdmissionReleasesItsPendingHold: an urgent admission
  refused after it took its urgent-pending hold gives the hold back. Fails
  here: the hold leaks, keeping Normal admissions refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:54:03 -08:00
pingqiuandClaude Opus 5.5 fd6701e86b hostlimit: timer cuts wait in ticket order; pacing uses the budget over held slots
The change of this PR's 22 commits, carried onto current main as one
commit (its base was 1884 commits behind). Fitted to main:

- pacing: main's rule that fallback-only leases are not paced stays; a
  healthy lease is paced at the budget over the held normal and urgent
  slots (this PR's rule) instead of over the configured slot count.
  TestFallbackDoesNotUnpaceAHealthyLease keeps its property (a healthy
  lease beside a fallback lease is paced) with a 500 ms deadline, since a
  lone holder now gets the whole budget.
- the cut loop keeps main's attempted hook and afterStaging (a failed
  attempt that staged new chunks retries at the next poll), with the
  ticket handling; the random retry delay is gone, as this PR intends.
- imports and constants: neither side's removed ones return.
- invariants: main's new rows and this PR's new and restated rows; the
  slot-wait row is this PR's (ticket order, the next poll).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:54:03 -08:00
Ping Qiu 8158e6b6cb Merge pull request #884 from seaweedfs/feat/hostlimit-progress-window
hostlimit: a cut hold is a no-progress window renewed by its work
2026-12-01 10:52:22 -08:00
pingqiuandClaude Opus 5.5 de256fc5aa chunkstore: EachSegment reads HEAD one segment at a time; one segment walker
LayoutRemote.EachSegment is GetHead one segment at a time: HEAD's
identity, and each segment its root names delivered with its shard's
range and references, only one held at a time (for the streaming attach,
V4-B PR 4 commit 4). The manifest read and the attach's bounded read now
share one walker (walkSegments: the root and each segment, counted, each
fetch bounded within an attach).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:27:12 -08:00
pingqiuandClaude Opus 5.5 27c679c36f hostlimit: exact, lock-free, monotonic hold expiry; the upgrade cure named
- expire decides and revokes in one step under the limiter's lock, reading
  the last progress at that step: a progress report that completed before it
  is always honoured.
- Progress takes no lock: it reads a lease index (sync.Map, kept with the
  live set) and stores an atomic stamp, so it never waits behind an
  admission's file-system work.
- the window runs on the monotonic clock: a stamp is time.Since of the
  limiter's base, never a wall timestamp.
- the launch refusal of a pool written with other flags names
  configuration.json and the cure (stop every process, remove it, start);
  the v1.1 notes carry the hold change and the upgrade step; the upload
  rate flag says the window must exceed one chunk's send time at it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:00:50 -08:00
pingqiuandClaude Opus 5.5 a2978497cd hostlimit: red tests, the hold's expiry is exact, lock-free and monotonic
Seam: testExpireRace, run between a hold's expiry decision and its
revocation.

- TestProgressRacingTheExpiryIsHonoured: a progress report landing while
  the expiry is decided must be honoured. Fails here: the decision is made,
  the lock dropped, and the hold revoked anyway.
- TestProgressDoesNotWaitForTheLimiterLock: Progress must not wait for the
  limiter's lock, which admission holds across file-system work. Fails
  here: it takes that lock.
- TestProgressStampIsMonotonicElapsed: the progress stamp must be an
  elapsed time on the limiter's monotonic base. Fails here: a wall-clock
  timestamp, so a clock step revokes or keeps holds wrongly.
- TestLaunchMismatchNamesTheFileAndTheCure: the launch refusal of a pool
  written with other flags must name configuration.json and the cure
  (stop every process, remove the file). Fails here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 09:57:02 -08:00
pingqiuandClaude Opus 5.5 4f7e211adc hostlimit, storage: a hold is a no-progress window renewed by its work
- hostlimit: Config.MaxHold (a fixed 5-minute hold limit) becomes
  NoProgress (default 60 s). Progress(id) records the work's progress, with
  no OS call; the hold's one timer, when it fires, arms again for the rest
  of the window if the work progressed, and revokes otherwise. A hold whose
  work keeps progressing is never revoked; a stalled one is revoked within
  the window.
- blockvolume: --host-limit-no-progress; --host-limit-max-hold stays as a
  deprecated alias of it.
- storage: BudgetProgress, the optional Budget that renews a hold; a cut
  attempt reports one unit of work per chunk compared, staged or uploaded.
  A hydrate-all holds one permit per chunk fill, so its hold is one fetch.
- invariants: INV-HOST-HOLD-NO-PROGRESS-001; M7 states the rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 09:45:24 -08:00
pingqiuandClaude Opus 5.5 7e5f1fce7d storage: every HEAD install goes through setHeadLocked; the ref table mirrors it under test
The nine places that installed the layer's HEAD (attach, settlement,
adoption, a fence, a cut's finish) go through setHeadLocked, and a cut's
finish through setHeadChangedLocked, which updates only its changed
chunks. On the v1.1 format they keep the ref table HEAD's when
refTableMirror is on; it stays off until the flat map goes (both at once
only add memory). TestRefTableMirrorsHeadThroughTheLayer runs the cut,
settle, hydration and fill suites on v1.1 with the table on and every
table read checked against the map (a mutant that drops a cut's changes
fails it). Tests that wrote the layer's HEAD directly now install it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 09:41:21 -08:00
pingqiuandClaude Opus 5.5 53e1de8120 hostlimit, storage: red tests, a hold is renewed by its work's progress
Seams: Config.NoProgress (default 60 s), Limiter.Progress (a no-op for
now) and storage.BudgetProgress, the optional Budget that renews a hold.

- TestStalledHoldIsRevokedWithinTheWindow: a hold with no progress is
  revoked within its no-progress window. Fails here: the fixed 5-minute
  hold limit still governs.
- TestProgressRenewsTheHold: a hold whose work keeps progressing is never
  revoked; once the progress stops, it is revoked within the window. Fails
  here on the second half.
- TestCutReportsProgressToItsBudget: a cut reports progress at least once
  per uploaded chunk. Fails here: no report. (A hydrate-all takes one permit
  per chunk fill, so its hold is one fetch and needs no renewal.)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 09:33:04 -08:00
pingqiuandClaude Opus 5.5 5e97bae96f storage: every single-chunk reader of HEAD goes through headRef; the chunkRefs interface
The thirteen readers that looked one chunk's reference up in the flat
HEAD map (the COW window, hydration, clean marks, fill, evict, the shadow's
seed) now ask headRef/headChunk, the one place that still reads the map
by index, so the map behind it can be replaced. chunkRefs declares the
ref table's narrow interface (Get, Set, Delete, FillSegment, Len). No
behaviour changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:57:35 -08:00
Ping Qiu 3228a6802b Merge pull request #882 from seaweedfs/test/delete-store-evidence
test, sw-block: a stalled delete and a dead test store are named
2026-12-01 08:47:47 -08:00
pingqiuandClaude Opus 5.5 ce490fdb39 storage: the ref table's fill replaces its segment and refuses out of range; its space test owns its source
FillSegment(first, end, refs) makes a segment's range exactly refs, so a
re-fill drops a reference the new HEAD no longer names; Set and
FillSegment refuse an index beyond the volume or outside the segment
(errRefBeyondVolume) and change nothing, so an attach refuses a malformed
HEAD. The space test drops its source HEAD before the reading, so a table
that aliased its keys would be charged for them (control: a shallow
flat-map copy measures ~287 B/chunk by the same method).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:44:50 -08:00
pingqiuandClaude Opus 5.5 d100675112 storage: the ref table, the holder's fixed-width copy of HEAD's references
refTable keeps one entry a chunk behind Get/Set/Delete/FillSegment/Len:
a canonical layout reference as its full SHA-256 and an interned owner
prefix (the key derived), any other shape kept whole, so it is exact for
every remote. At the 1 TiB chunk count it holds 34 B/chunk, against the
flat map's ~287 with its keys. Not wired yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:40:04 -08:00
pingqiuandClaude Opus 5.5 45f7d71607 storage: the chunk record keeps each chunk's state in one byte
The record runtime held every chunk's kernel state as the kernel's string
kind (16 B a chunk); it now keeps the one-byte page code it already writes
(r2.735) and converts at its boundary through a fixed table. The kernel's
types and table are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:40:04 -08:00
pingqiuandClaude Opus 5.5 24e5b821e3 sw-block: the delete's whole stderr is best effort; a stuck stderr never holds it
- diagWriter is now the volume-delete command's stderr: Write never blocks
  (queued in order to one writer goroutine, dropped when the queue is full),
  so the sweeps, the error line written before stdout, the answer on stdout
  and the exit never wait on stderr. close runs after the answer, waits at
  most 200 ms for queued lines, then abandons a stuck writer: nothing more
  is written. All of the command's stderr goes through it, so its writes
  never overlap.
- deleteVolumeWithProgress writes to the stderr it is given (it must not
  block) and no longer owns a writer.
- harness: a server whose launch failed reports 'not started', not running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:29:31 -08:00
pingqiuandClaude Opus 5.5 816a5ceb29 test: red test, a stuck stderr still lets the delete's answer and exit out
- TestVolumeDeleteAnswerDoesNotWaitOnAStuckStderr: with a stderr whose
  writes never return, the answer must reach stdout and the command exit as
  with a fast stderr, within the bound plus a short drain. Fails here: no
  answer and no exit in 10 s (the writer is joined before stdout is written,
  and the error line is written to stderr before stdout).
- TestVolumeDeleteNeverWritesStderrConcurrently replaces the store-call
  timing: a stderr not safe for concurrent use, 1 s per progress line, sees
  no overlapping writes (holds here and must keep holding).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:26:18 -08:00
pingqiuandClaude Opus 5.5 f6739953c4 sw-block, test: the delete owns its stderr; a failing start is reported once
- diagWriter.close joins its writer goroutine: nothing the delete queued is
  written beside the caller's later writes, so a stderr need not be safe for
  concurrent use. The queue holds 4 lines, so after the answer is decided
  close waits for at most 4 writes; sweeps and the answer never wait.
- registerWeedReport is called after each weed server's own stop cleanup,
  so the latest one runs before every stop: a test that fails while its
  cluster is still starting gets the report too; once per cluster, none for
  a discarded start attempt (its failure message carried one).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:19:12 -08:00
pingqiuandClaude Opus 5.5 76412ba143 test: red tests, the delete owns its stderr; a failed start is reported once
- TestVolumeDeleteAnswerDoesNotWaitOnASlowStderr now uses a stderr that is
  not safe for concurrent use and flags overlapping writes, with 1 s per
  progress line: the answer and exit must be a fast stderr's, the last store
  call must come within the bound, and no two writes may overlap. Fails here:
  after its 200 ms drain the writer goroutine still writes beside the
  caller's final line.
- TestWeedReportCoversAFailureDuringTheStart: a test failing while its
  cluster is still starting gets one report with every server still
  running. Fails here (seam registerWeedReport).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:16:01 -08:00
pingqiuandClaude Opus 5.5 b91bffb691 sw-block, test: delete diagnostics are best effort; a failed start is reported
- volume-delete: every progress line goes through a diagnostic writer whose
  one goroutine owns the stderr writes; a line that finds its queue full
  is dropped and printf never blocks, so a slow stderr delays neither a
  sweep, the retry window nor the answer. Once the answer is decided the
  command waits at most 200 ms for queued lines.
- process-test harness: a failed weed start (a server never listened, or
  every attempt failed) is reported with each server's state and the
  master's and the volume server's last lines, taken before the servers
  are stopped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:08:09 -08:00
pingqiuandClaude Opus 5.5 7ae15f06a7 test: red tests, diagnostics never gate the delete; a failed start is reported
- TestVolumeDeleteAnswerDoesNotWaitOnASlowStderr: a stderr that takes 3 s
  for each of the delete's progress lines must change neither the answer nor
  the exit status, and the answer must come within the bound plus a short
  drain. Fails here: the answer waited 15 s on stderr (bound 400 ms).
- TestWeedStartFailureCarriesTheReport: a failed weed start attempt's
  message carries each server's state and the master's and the volume
  server's last lines. Fails here (seam weedStartFailure).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:01:25 -08:00
pingqiuandClaude Opus 5.5 8bd9dca492 invariants: INV-CLI-DELETE-PROGRESS-001 states the stall report
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:50:08 -08:00
Ping Qiu 15acf340cd Merge pull request #880 from seaweedfs/v11/clean-stop-seed
v1.1 upgrade: seed whole local chunks after a clean stop
2026-12-01 07:30:49 -08:00
pingqiuandClaude Opus 5.5 f675644674 test, sw-block: a stalled delete and a dead test store are named
- sw-block ops chunk volume-delete: while a sweep makes no progress, stderr
  says so every quarter of --timeout (at most every 5 s), with how long
  nothing has moved, the object it waits on and the count so far; the bound
  and the answer are unchanged.
- process-test harness: each weed server keeps its own exit status per start;
  a failed test logs, as its own message, each server as running or exited
  with its status and the master's and the volume server's last lines (the
  volume server last, within what the CI summary keeps); the delete
  helper's kill and deadline failures name the store's state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:24:31 -08:00
pingqiuandClaude Opus 5.5 160383ee03 test: red tests, a stalled delete and a dead test store are named
- TestVolumeDeleteReportsAStalledStoreWhileItWaits (sw-block): a store that
  holds every object delete until its deadline; while the sweep waits, stderr
  must say how long nothing has moved and the object it waits on. Fails
  here: stderr has only the end-of-sweep count.
- TestWeedFailureReportNamesEachServerAndItsTail (blockvolume harness): a
  failed test's evidence names each weed server as running or exited with
  its status, then the master's and the volume server's last lines, inside
  the 20 continuation lines the CI summary keeps. Fails here (seams
  weedState and weedFailureReport return nothing); the cluster records each
  server's exit status for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:22:13 -08:00
pingqiuandClaude Opus 5.5 313d7b7d07 invariants: M1 shows the v1.1 upgrade's guarded clean-stop seed
The diagram gains the Recovering -> Serving edge of the v1.1 attach's
upgrade, and the table its row: whole local chunks Rebuilt all, Hash,
Commit to HP with HEAD's hash only when the clean-stop proof holds (the
claim's own HEAD a committed, idle detach; the store's lineage; the store's
synced position), unknown otherwise; linked to INV-CHUNK-RECORD-SEED-001,
whose machine column now names the same transition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:05:12 -08:00
Ping Qiu 42ba1b9cd0 Merge pull request #879 from seaweedfs/test/v4b-space-baseline
storage: a SPACE baseline at the 1 TiB shape and barrier benchmarks at 1 and 16 TiB
2026-12-01 06:30:39 -08:00