Commit Graph
1583 Commits
Author SHA1 Message Date
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
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
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
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
Ping Qiu 6e385d4774 Merge branch 'main' into fix/cut-single-upload-retry 2026-11-19 03:33:49 -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 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
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
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
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
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
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
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
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
pingqiu d9e5f7c9fa fix: bound individual upload retries without timing out whole cuts 2026-11-19 00:42:23 -08:00
pingqiu 608046e6cb fix: refuse missing open-only volumes before fresh sidecars 2026-11-19 00:33:10 -08:00
pingqiu aea5f5d88b test: observe mixed-arm counts before the generic overwrite oracle 2026-11-19 00:15:38 -08:00
pingqiuandClaude Opus 5.5 a5ae7fb0d3 durable: seed log outside the store locks; log every claim outcome
Fold of the #248 review:
- the v3 seed logs after the capture and lifecycle locks are released,
  and names its intervals for what they include (lock wait, store mutex
  and validation, data sync incl. sync serialization, checkpoint publish);
- the HEAD claim logs its start before the claim's own HEAD read and its
  elapsed time on failure; the observed HEAD is logged as an observation;
- a close during the attach retry backoff ends the wait as closed, not
  superseded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 00:07:59 -08:00
pingqiu 42d30e0627 test: retire BASE begin hook before completion transition 2026-11-19 00:04:46 -08:00
pingqiuandClaude Opus 5.5 7116f6dbf8 test: #247 review fold: release before join; credit only renewals started under the hold
- master slow store: each held Put takes a generation; a renewal is credited
  with the generation it read before its call, so a reply computed before
  the hold never releases it. slow.release() runs as the first cleanup, so a
  held Put cannot block the publisher/extender joins after a failure.
- authority WritersExtendersClose: only grants of calls that started after
  the extension write was held count (flag set before the hold blocks).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 00:02:05 -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
pingqiuandClaude Opus 5.5 9f46fb8d7d test: workspace-lease family waits by progress, not wall-clock bounds (#227)
- core/host/master TestWorkspaceLeaseGuardSurvivesSlowAuthorityStore: each
  lease write is held until a renewal succeeded during the hold (slowness by
  progress), three held writes must complete, a sampler records any fence;
  replaces the 2.5 s sleeps and the 10 s watch. A renewal that waited for the
  store would let the guard lapse and fail the test at once.
- TestWorkspaceHeldRenewalBoundary, TestWorkspaceMoveRestoresLazilyAndFencesOldHost:
  the test context has no wall-clock bound (3 s / 10 s); each step completes
  or the go test timeout reports the hang. The guard's own RPC timeout stays.
- core/authority TestWorkspaceLeaseConcurrentRenewalsWritersExtendersClose:
  wait for the held extension write and for renewals under it by progress
  (were 5 s / 2 s bounds); joins after release unchanged.
- waitExtenders joins the finite extenders without a 10 s bound.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:41:12 -08:00
pingqiu 4055e403ea test: cover open-only geometry and disappearance race 2026-11-18 23:38:06 -08:00
pingqiu d102a1c1a3 fix: admit geometry only when creating durable storage 2026-11-18 23:37:14 -08:00
pingqiu 1e5fe198e3 test: preserve existing-volume create-geometry compatibility 2026-11-18 23:36:38 -08:00
Ping Qiu 325c7555f7 Merge pull request #230 from seaweedfs/fix/manifest-base-group-scan
chunkstore: partition base references once for manifest preparation
2026-11-18 23:34:57 -08:00
pingqiuandClaude Opus 5.5 f99db46603 durable: log the chunk authority wait, the HEAD claim and the seed stages
A deferred chunk attach was silent from the end of local recovery until
it served or failed. Log:
- entering the authority wait, with the projection fields that fail;
- the first attach attempt, once the projection carries authority;
- an attach that found authority gone again;
- the HEAD claim start (observed HEAD gen/epoch/holder/state/remote LSN
  and the target epoch/holder) and its end with the duration;
- how the wait ended (attached after N attempts, fenced, closed,
  superseded, or assignment unavailable with the fields still missing);
- the v3 seed's lock wait, data fsync and checkpoint publish durations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:29:38 -08:00
pingqiuandClaude Fable 5.2 3e6e0c9603 blockvolume: correct the --chunk-dirty-threshold help text and comment
The flag help and the ChunkDirtyThreshold comment still described the
cut as it was before copy-before-write: "bound on one cut's barrier
copy" and "0 = unbounded".

Since the chunk copy moved out of the barrier, the value is the number
of candidate chunks above which a cut pre-copies (stages) chunks before
its barrier, in rounds of that size, and 0 disables pre-copy
(chunk_layer.go, stage: a bound <= 0 returns without staging).

Text only. No behaviour change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 23:13:32 -08:00
pingqiu a9a2cfa936 style: group create-admission imports 2026-11-18 23:10:20 -08:00
pingqiu 9e809120f4 fix: admit original geometry before every durable create 2026-11-18 23:08:47 -08:00
pingqiu c4a37fd4a0 test: cover create admission callers and legacy retry 2026-11-18 23:07:15 -08:00
pingqiuandClaude Opus 5.5 01a118036f authority: read the lease view under leaseMu in the renewal refusal (#242)
The no-host-validity refusal in RenewWorkspaceLease formatted its error
from lv.d.horizon after releasing leaseMu, while the extender
(refreshLeaseViewLocked) rewrites the view under leaseMu: a data race.
The horizon is now read before the unlock.

Test: TestWorkspaceLeaseRefusalReadsTheViewUnderTheLock drives the
refusal while the view is republished concurrently; under -race it fails
on main (workspace_lease_view.go:174) and passes here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:00:20 -08:00
pingqiu 19195503eb chore: keep public PR changes to implementation and tests 2026-11-18 22:57:17 -08:00
pingqiu 254f6ba7ee chore: keep public PR changes to implementation and tests 2026-11-18 22:57:12 -08:00
pingqiu 6de4d89a98 chore: keep public PR changes to implementation and tests 2026-11-18 22:57:06 -08:00
pingqiuandClaude Opus 5.5 b46c31ccea volume: parallel RF1 test releases and joins its workers on every exit path
Review fold (P2 cleanup, test only): an idempotent release and bounded
joins of the started workers are registered with t.Cleanup before any
worker starts, so a Fatal while the replay is parked cannot leave it
running past teardown. A join timeout is reported as an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:33:33 -08:00
pingqiu bdeb3faf5e docs(geometry): state the block-size assumption behind the byte cap 2026-11-18 22:29:44 -08:00
pingqiuandClaude Opus 5.5 08b4e33384 volume: RF1 tests write and read back at the current identity; parallel replay race
Review fold (P2, tests only): the positive RF1@3 steps now write and read
back through a backend at the epoch-3 identity (exact n, nil error); the
stale-RF2 test requires a successful write. New two-worker test: the replay
worker's RF1@2 parks in the peer-set update, the stream worker's RF2@3 is
refused meanwhile, then the replay resumes; bounded by timeouts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:27:16 -08:00