Commit Graph
3468 Commits
Author SHA1 Message Date
pingqiu 7da8006648 test(nvme): pin zero retry delay for readiness policy 2026-11-19 07:09:58 -08:00
pingqiu f12c8f7358 test(durable): witness pending read before drain and close 2026-11-19 07:08:58 -08:00
Ping Qiu 4b5320f3ea Merge pull request #237 from seaweedfs/fix/chunkmap-bounded
fix(storage): bound the v3 owned-map file by reusing unreferenced extents
2026-11-19 07:08:03 -08:00
pingqiu dcf85fb41f fix(durable): wait for chunk read readiness before host retries 2026-11-19 07:07:58 -08:00
pingqiu 25ef2bbbb0 test(durable): model host retry exhaustion during attachment 2026-11-19 07:04:53 -08:00
pingqiu bdf45a43f8 fix(nvme): retry reads while the backend is not ready 2026-11-19 06:48:12 -08:00
pingqiu 93529c04fd test(durable): hold takeover after visible HEAD claim 2026-11-19 06:46:42 -08:00
pingqiu faceab21d3 test(nvme): reproduce reads during delayed chunk attachment 2026-11-19 06:45:24 -08:00
Ping Qiu 1747cdf9e1 Merge pull request #258 from seaweedfs/feat/dtb-b3-volume-unheld
storage, sw-block: prove locally that no process holds a volume
2026-11-19 06:37:59 -08:00
Ping Qiu 83b0878864 Merge pull request #229 from seaweedfs/fix/chunk-refuses-replication
blockvolume: refuse replication on a walstore-chunk volume (RF1 only)
2026-11-19 06:34:38 -08:00
pingqiuandClaude Opus 5.5 385ad024f4 test: #262 fold: one test-clock transaction per Now/Freeze/Resume; failure exits on the hold waits
Review fold (codex01, test only): the frozen check, time.Now and the offset
were separate reads, so a reader paused across freeze+release could see the
clock go backwards. leaseTestClock serializes Now/Freeze/Resume/SetOffset
under one mutex and never returns an earlier time than a previous Now.
TestLeaseTestClockMonotonicAcrossFreezeResume runs readers across 50
freeze/resume transitions. The held-entered and under-hold progress waits
get 30 s real-time failure exits (never a pass); the cleanup releases the
hold and joins every worker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 06:26:37 -08:00
Ping Qiu b783626889 Merge pull request #245 from seaweedfs/fix/chunk-dirty-threshold-help
blockvolume: correct the --chunk-dirty-threshold help text and comment
2026-11-19 05:59:07 -08:00
pingqiuandClaude Opus 5.5 6a063f2ec8 test: freeze the publisher clock while the extension write is held (#247 hang)
TestWorkspaceLeaseConcurrentRenewalsWritersExtendersClose hung ~9m40s in a
loaded qual run (goroutine dump: one extender held in the store hook, four
queued on p.mu, renewers looping, the test in the progress loop). Cause: a
test bug. The test's publisher clock was real time with a 2 s TTL; while the
held extension write holds p.mu no horizon can move, so a late test
goroutine let horizons expire, renewals were refused, and the progress
condition (a grant under the hold for every eligible volume) could never
hold. Not a product stall: renewals never waited for the store.

The clock is now frozen while the extension write is held and resumes from
the frozen instant at the release (no jump over a horizon), so extensions
again run in real time alongside the writers and Close. A 3.5 s late test
goroutine after the hold is now part of the test; without the freeze it
fails ('revoke ACK: lease expired').

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 05:44:54 -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
Ping Qiu be320d34c5 Merge pull request #238 from seaweedfs/fix/cut-single-upload-retry
storage: retry individual cut uploads within a shared deadline
2026-11-19 05:19:26 -08:00
pingqiuandClaude Opus 5.5 45a82b7bce storage: the seed log test accepts stage times of a second and more
The pattern required a unit prefix ("ms", "µs", "ns") before "s", so a
stage that took a second or more ("1.453517616s", seen under load on a
slow fsync) failed the test. It now matches a duration at any scale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 05:15:17 -08:00
pingqiuandClaude Opus 5.5 d8c42d0928 master: a move target may use any port on the target node's host
A volume without per-volume bindings could move only to the target
node's single registered address pair, which models one slot per node: a
host serving several slots refused every move whose target landed on a
slot other than the registered one (slot 1 while slot 0 is held). The
target now needs both endpoints on the node's registered hosts (literal
host part, any port, no name resolution), and the existing collision
check still refuses endpoints another live assignment or binding owns.
Volumes with per-volume bindings keep the exact binding match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 04:57:41 -08:00
pingqiuandClaude Opus 5.5 e9aecf52dc master: name the precondition that refused a workspace move
MoveWorkspace refused four different conditions with one message and no
log line: an unknown source, an unregistered target node, a target that
is the source, and target endpoints that are not registered. Each now has
its own FailedPrecondition message, logged with the volume and request.
The endpoint refusal also says what is registered: the node's own pair
for a volume without per-volume bindings, else its live bindings on that
node (a slot-1 target on a node registered at slot 0 shows up here).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 04:42:38 -08:00
pingqiu 3abdc01336 test(storage): settle held hydration workers before cleanup 2026-11-19 04:19:30 -08:00
Ping Qiu 0a645f2121 Merge pull request #248 from seaweedfs/fix/chunk-authority-wait-logs
durable: log the chunk authority wait, the HEAD claim and the seed stages
2026-11-19 04:03:23 -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
Ping Qiu 6e385d4774 Merge branch 'main' into fix/cut-single-upload-retry 2026-11-19 03:33:49 -08:00
pingqiuandClaude Opus 5.5 ee8b72735a storage: #252 fold: no new payload I/O after expiry, short locks block, keep storage cause
Takes over codex03's fix/write-command-budget at 2d6d9711.

- P1 (codex01): appendWriteV3 / writeBatchV3Locked take the command budget
  and check it after rolloverCheckpointV3Locked (its metadata I/O completes
  and stays owned) and before the payload append, so an expired command
  never starts new payload WAL I/O. Red test:
  TestWALStoreV3WriteBudgetRefusesNewPayloadAfterRollover (single, batch).
- P1 (claude05/codex01): the short locks (s.mu in Write/WriteBatch and the
  pressure sampler's s.mu, descMu, writer.mu) are taken blocking again, so
  they keep RWMutex writer preference; the budget is checked once they are
  held. Only captureMu/lifecycleMu keep the bounded wait. Red test:
  TestWALStoreV3WriteKeepsWriterPreferenceUnderReaders. The polling-era
  lock tests become TestWALStoreV3ExpiredWriterRefusesAfterShortLockWait.
- P1 (codex01): a batch that returns a committed prefix plus a storage error
  keeps that error when a required observer then fails: the classifier sees
  both causes (errors.Join), so a physical fault stays terminal. Red test:
  TestStorageBackendPartialBatchPhysicalFaultSurvivesObserverDeadline.
- P2: the contextless Write/WriteBatch fallbacks refuse an already-expired
  command before a fresh mutation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 03:30:57 -08:00
pingqiu 370be25e94 test(storage): isolate cut proof invalidation from map generation 2026-11-19 03:13:45 -08:00
pingqiu 9acab6eeba test(storage): sync hydrated extents before reopen assertions 2026-11-19 03:10:31 -08:00
pingqiu 33a6adf6ca test(storage): require reuse refusal after uncertain rollover 2026-11-19 03:09:17 -08:00
pingqiuandClaude Fable 5.2 9853ea8f10 Merge branch 'main' into fix/chunk-dirty-threshold-help
Resolve the conflict in the ProviderConfig comments: keep main's new DetachFreezeTimeout field and the corrected ChunkDirtyThreshold comment.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 03:06:52 -08:00
Ping Qiu 59bf6f06b5 Merge branch 'main' into test/227-part2 2026-11-19 03:05:48 -08:00
pingqiu 194f1552e2 test(storage): cover no-sync pressure and speculative prefix boundaries 2026-11-19 03:05:35 -08:00
pingqiuandClaude Opus 5.5 ffb5cbbe4e authority: every store records lost ranges; a resumed reservation needs its range
Fold of the #255 r2 review:
- the lost-range methods are part of AuthorityStore instead of an
  optional capability, so no store (and no wrapper embedding one) can
  issue a forced move without recording its range;
- a pending forced reservation resumes only with the exact range recorded
  before it; a missing one is refused, never recomputed (a new request
  records a fresh range);
- fault hooks inside the file store cover a failure before the rename and
  one at the directory sync.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 03:05:07 -08:00
Ping Qiu fe3fe97489 Merge branch 'main' into fix/chunk-refuses-replication 2026-11-19 03:05:05 -08:00
Ping Qiu 532be33feb Merge branch 'main' into fix/chunk-authority-wait-logs 2026-11-19 03:05:01 -08:00
pingqiu 7cb0296158 fix(storage): preserve caller cancellation during claim intent retirement 2026-11-19 03:00:27 -08:00
Ping Qiu 7dc34b0197 Merge pull request #254 from seaweedfs/test/dtb-b1-exited-holder
master: test the exited-holder recovery path (forced move, then delete)
2026-11-19 02:56:48 -08:00
pingqiuandClaude Opus 5.5 574c035e68 storage: gofmt the unheld probe test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 02:50:41 -08:00
pingqiuandClaude Opus 5.5 fcf5dc72d7 storage: decide unheld on one locked descriptor
Fold of the #258 review:
- the probe opens the volume once, locks that descriptor first, then
  identifies the same open file as v3: a path replaced between two opens
  can no longer yield a false unheld, and a locked file is held whatever
  it is;
- locking before reading also fixes Windows, where an owner's byte lock
  refused the probe's earlier read (it reported unknown, not held);
- the test reaps its holder process on every path; the CLI test closes
  its store unconditionally;
- the usage text adds that the probe is momentary and reserves nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 02:49:51 -08:00
pingqiu 2aebe5f044 test(chunkstore): refuse changed content at identical legacy frontier 2026-11-19 02:47:20 -08:00
pingqiu 4129cc3668 test(storage): compose checkpoint diagnostics with prefix and extent guards 2026-11-19 02:45:22 -08:00
pingqiu d6023969a0 storage: distinguish recovery and map generation refusals 2026-11-19 02:44:46 -08:00
pingqiu b97352083a storage: print the stable checkpoint refusal reason 2026-11-19 02:44:46 -08:00
pingqiu 0df88965e9 storage: report checkpoint retry reasons and cumulative outcomes 2026-11-19 02:44:46 -08:00
pingqiu 3aa38eadd8 test: expose checkpoint persistence refusals and successes 2026-11-19 02:44:25 -08:00
pingqiu ae0f74cb16 test(storage): measure birth sampler maximum default geometry and lock wait 2026-11-19 02:44:05 -08:00
pingqiu 1a9dc60643 fix(chunkstore): upgrade legacy data callers and preserve fork identity 2026-11-19 02:42: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 49b9fe67b7 fix(storage): retain checkpoint proof across newer WAL appends 2026-11-19 02:42:14 -08:00
pingqiu b7856e4793 test(chunkstore): use fixture blob store 2026-11-19 02:41:22 -08:00
pingqiu 65f661ca44 test(chunkstore): exercise persisted legacy upgrade callers 2026-11-19 02:41:04 -08:00