Commit Graph
4169 Commits
Author SHA1 Message Date
pingqiu d2ecca2dee fix: keep default attach work outside the assignment allowance 2026-11-29 08:19:55 -08:00
pingqiu bb9f6f1207 test: require resumable progress guidance on backup failures 2026-11-29 08:18:32 -08:00
pingqiu 83cdea1502 test: reproduce default attach deadline on a dense manifest 2026-11-29 08:17:32 -08:00
Ping Qiu 30b5177b17 Merge pull request #767 from seaweedfs/docs/force-move-dry-run-exit
docs(lifecycle): force-move --dry-run exits 0 whenever the check ran
2026-11-29 08:01:10 -08:00
pingqiuandClaude Opus 5.5 e3e5f24928 docs(lifecycle): force-move --dry-run exits 0 whenever the check ran
Read its admitted or not-admitted line before moving; the exit code does not
say which.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 07:26:32 -08:00
Ping Qiu faf70368ea Merge pull request #759 from seaweedfs/fix/volume-delete-progress
fix: continue volume deletion while bounded sweeps make progress
2026-11-29 04:55:59 -08:00
Ping Qiu 0a50e61875 Merge pull request #758 from seaweedfs/feat/cut-compare-progress
fix(storage): a cut marks each chunk equal to HEAD as soon as it compares it
2026-11-29 04:54:33 -08:00
Ping Qiu 21c87519a9 Merge pull request #764 from seaweedfs/docs/recovery-window-active
docs(invariants): INV-RECOVERY-PROGRESS-WINDOW-001 is ACTIVE
2026-11-29 04:53:45 -08:00
Ping Qiu 41337eed22 Merge pull request #760 from seaweedfs/fix/volume-status-chunk
fix: preserve chunk diagnostics in volume status reports
2026-11-29 04:39:34 -08:00
pingqiuandClaude Opus 5.5 5d8ac4a727 docs(invariants): INV-RECOVERY-PROGRESS-WINDOW-001 is ACTIVE
The recovery and attach halves landed together and the joint
recovery+attach Linux qualification passed (7495 PASS, 0 FAIL, race x5
including the attach tests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 04:38:36 -08:00
Ping Qiu a486aa1dd2 Merge pull request #763 from seaweedfs/docs/recovery-attach-cl-rows
docs(invariants): the recovery and attach C.L rows, both ACTIVE
2026-11-29 04:35:00 -08:00
pingqiuandClaude Opus 5.5 0aa4cf8621 docs(invariants): the recovery and attach C.L rows, both ACTIVE
The shared progress window's two rows as reviewed on the recovery and
attach pull requests (the recovery half's code and the attach half
landed together on main); the joint recovery+attach Linux qualification
passed, so both read ACTIVE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 04:23:50 -08:00
pingqiu 2fa2200b11 docs: describe chunk reports and node evidence limitation 2026-11-29 04:21:13 -08:00
pingqiu 37efdef9da test: cover expired delete sweeps and the last-progress window 2026-11-29 04:19:51 -08:00
pingqiu ee334f66ff fix: preserve chunk layer in volume status reports 2026-11-29 04:15:28 -08:00
pingqiu 09b3fe445b test: retain chunk status in volume reports 2026-11-29 04:15:26 -08:00
Ping Qiu 0d499a9859 Merge pull request #753 from seaweedfs/feat/attach-recovery-progress
feat(durable): the chunk attach reports its local work; 30 s bounds only its remote calls
2026-11-29 04:10:37 -08:00
pingqiu cb1c929350 fix: continue volume deletion while bounded sweeps make progress 2026-11-29 04:08:55 -08:00
pingqiu ca41cfd2a1 test: reproduce transient volume delete failures and stalled progress 2026-11-29 04:05:07 -08:00
pingqiuandClaude Opus 5.5 f2b9d38885 fix(storage): a cut marks each chunk equal to HEAD as soon as it compares it
A cut recorded its equal-to-HEAD marks only after the whole compare loop,
so a cut that ran out of time kept nothing and the next request compared
every chunk again. After a holder restart a restore target's read-filled
chunks are all candidates of its first cut (the clean-fill records live in
memory only), so at 1 TiB that compare is growing work under one request's
fixed bound. Each equal chunk is now marked at its compare, at the version
the barrier captured and only while the chunk still has it (the same mark
as after the loop), so the next request continues from there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 04:01:57 -08:00
Ping Qiu d212428e8b Merge pull request #755 from seaweedfs/test/binding-reconcile-interrupt
test(master): verify interrupted binding reconciliation converges
2026-11-29 03:58:10 -08:00
Ping Qiu 12ba154d55 Merge pull request #756 from seaweedfs/docs/v100-known-holder-crash
docs(v1.0.0): known limit: a rare holder crash on a volume's first reads, fixed in v1.0.1
2026-11-29 03:50:59 -08:00
pingqiuandClaude Opus 5.5 b5f70dc0de docs(v1.0.0): the holder crash item links the lifecycle page's crash statement
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 03:39:59 -08:00
pingqiu 76676919eb docs(master): split binding recovery regression properties 2026-11-29 03:39:49 -08:00
pingqiuandClaude Opus 5.5 c0e8af50bc docs(v1.0.0): known limit: a rare holder crash on a volume's first reads, fixed in v1.0.1
A v1.0.0 blockvolume can stop with a Go runtime map error during the first
reads of a volume that opens from the object store, most likely a restore
target. No acknowledged write is lost; it is fixed in v1.0.1 and there is no
v1.0.0 patch release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 03:35:22 -08:00
pingqiuandClaude Opus 5.5 95d40236a1 docs(invariants): the C.L attach row names the counting test and the per-fetch rule
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 03:23:24 -08:00
Ping Qiu 22534388cc Merge pull request #750 from seaweedfs/feat/volume-backup-restore
feat(sw-block): volume backup and volume restore
2026-11-29 03:20:45 -08:00
Ping Qiu 15b954dfe8 Merge pull request #754 from seaweedfs/feat/log-collect
feat(cli): collect read-only support bundles without credentials
2026-11-29 03:19:37 -08:00
pingqiuandClaude Opus 5.5 8e76008ec6 fix(attach): bound GetHead's HEAD read and rollback; report every scanned entry
- Within an attach, GetHead's HEAD read and a crashed-session rollback
  carry the per-fetch bound like each manifest fetch; a stalled HEAD
  read fails the attempt.
- The created-this-start scan reports every inspected entry, not only
  candidates (a dense HEAD reports too); the presence save reports its
  key preparation; the manifest conversion reports in batches of 256.
- The stalled-fetch tests have their own outer deadline, so a removed
  bound fails the test instead of hanging the suite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 03:06:10 -08:00
pingqiuandClaude Opus 5.5 68b6100328 test: the layout identity census lists the restore command's readers
volumeRestore and volumeRestoreAbort read layout ids; each now has its
probe: a restore answer without a valid layout id is unknown and places
nothing, and abort refuses settings naming another layout id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 03:04:44 -08:00
pingqiu a52e5e1724 docs(cli): scope acquisition regression to its tested boundary 2026-11-29 03:03:37 -08:00
pingqiu 9606a9c8f4 test(cli): correct Linux collection and diagnostic guards 2026-11-29 03:02:25 -08:00
pingqiu 2776f8f1fc test(master): interrupt binding recovery at every retirement 2026-11-29 02:50:48 -08:00
pingqiuandClaude Opus 5.5 af5459d6cb fix(attach): bound each manifest fetch, report each segment and all local loops
- GetHead is not one remote call: within an attach it carries the
  per-fetch rule (storage.AttachFetch), and the layout remote reads the
  root and each segment under chunkAttachTimeout on its own, reporting
  each completed segment through the attempt's progress. No bound wraps
  the read as a whole, whose segment count grows with the volume.
- The attach reports its local work as it completes: the HEAD copy, the
  absent marking, the created-this-start scan, the presence load and
  the attach's presence save; the batcher also reports the first
  completion and about once a second (completed work only).
- The ledger row names the attach tests; the C.L row states the per-fetch
  bound and keeps the joint qualification pending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 02:44:35 -08:00
pingqiu 7b65aab75f fix(cli): keep credential discovery ahead of collection limits 2026-11-29 02:43:01 -08:00
pingqiuandClaude Opus 5.5 c7ac7b2199 docs(trace): map volume_backup.go to RestoreCommand; ledger names the required-name test
The public trace map gains the RestoreCommand module (Run, Start,
AbortVerify, Abort) for cmd/sw-block/volume_backup.go, and
INV-CLI-RESTORE-VERB-001 also names the backup's required-name test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 02:37:05 -08:00
pingqiu c92f5b5a13 fix(cli): canonicalize support-bundle credential forms 2026-11-29 02:36:39 -08:00
pingqiuandClaude Opus 5.5 4c119fafb6 fix(sw-block): abort checks the unit's effective identity; a failed re-read is unknown
- The unit passes SWB_VOLUME_EXTRA_ARGS after its own flags, so --abort
  accepts only the exact value volume start writes (--layout-id <id>);
  another layout id after it, or a --master or --volume-id override,
  refuses with nothing changed.
- A placement refused and then not re-readable is an unknown outcome
  (rerun or abort), never "not placed".
- Ledger row INV-CLI-RESTORE-VERB-001 names the guards' tests; the
  persisted-state page lists the settings file restore writes and abort
  removes, and that backup writes no host file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 02:32:04 -08:00
pingqiu b4762ef771 fix(cli): discover per-volume holder units for default bundles 2026-11-29 02:28:11 -08:00
pingqiuandClaude Opus 5.5 2cca7deb72 fix(sw-block): placement reads the published line; abort checks the local install; backup needs --name
- The placement step reads the publisher's line (QueryVolumeStatus), which
  exists before any lease is granted on it, with the bindings
  (QueryWorkspace). A placement refused because the line was published in
  between is read again: this exact placement counts as done.
- --abort also checks this host's settings for the target (volume, master,
  layout id) before any change; another installation, or a running unit
  without settings, refuses with nothing changed.
- volume backup requires --name: a name the command chose would be lost
  with its terminal, and the same command could not resume it.
- The fake master answers a deleting or tombstoned target as the master
  does (FailedPrecondition, not_admitted) and grants no lease, so every
  re-run test runs in the published-before-lease interval.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 02:27:44 -08:00
pingqiuandClaude Opus 5.5 a7305caa4e fix(sw-block): volume restore reports the typed restore_source_not_own
A restore whose source is itself a restore target now names the master's
typed reason, as the page says, instead of the generic not_admitted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 02:27:43 -08:00
pingqiuandClaude Opus 5.5 27be7892a8 fix(sw-block): restore --abort verifies its target; reruns converge after placement
- GetVolume reports a restore target's recorded restore tuple (source
  volume, snapshot, create request id): three additive read-only fields
  filled from the lifecycle record. --abort reads it before any change
  and refuses another restore's target, a plain volume, or a record with
  no tuple (a blockmaster before v1.0.1) with nothing changed.
- restore reads the placement (QueryWorkspace) before placing: once the
  authority line is published the master refuses any placement, so a
  line for this replica with this binding is this restore's placement,
  and a line for anything else refuses naming the abort.
- backup labels its snapshot with its request and accepts only an answer
  carrying that label (the holder answers an existing name with the
  snapshot already there); every printed fact must be present.
- Tests run the production volume-delete and release against the layout
  catalog: dependent removal, the tombstone refusal, interrupted aborts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 02:27:43 -08:00
pingqiuandClaude Opus 5.5 c99f66644d fix(sw-block): restore --abort says what its release path keys on and leaves
The release fallback keys on volume_not_found, which also names a volume
the master does not know; the abort resolves the target at the master
first, so the code that follows is the layout's (no HEAD). After the
release path the master keeps the restore's not-ready record; the abort
prints that, the page says it, and the crash table checks the text on
the no-HEAD rows only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 02:27:43 -08:00
pingqiuandClaude Opus 5.5 2cc003e335 feat(sw-block): volume backup and volume restore
Whole-job commands over existing calls, with no state of their own:
- volume backup: the holder's snapshot, request id derived from the
  volume and the name; the same command resumes the same request.
- volume restore: the master's restore create (request id derived from
  target, source and snapshot), then binding and placement once the
  target is store-ready, then volume start's steps.
- volume restore --abort: stop and disable the target's unit, remove its
  settings, then delete it (volume-delete with HEAD, release which
  tombstones without HEAD); the dependent is released only after the
  target can no longer serve.
Every failure names the exact command to rerun or to abort. bindAndPlace
moves out of ops volume create so both use the same two calls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 02:27:43 -08:00
Ping Qiu 74c16b723d Merge pull request #752 from seaweedfs/docs/persisted-state
docs: persisted state, the list an in-place upgrade rests on
2026-11-29 02:26:04 -08:00
pingqiu bfc9ed852b fix(cli): preserve ordinary diagnostics during credential redaction 2026-11-29 02:25:04 -08:00
pingqiu 5147b16052 fix(cli): retain local logs when remote diagnostics time out 2026-11-29 02:22:59 -08:00
pingqiu 3d9c042835 feat(cli): collect read-only support bundles with credential redaction 2026-11-29 02:18:51 -08:00
pingqiuandClaude Opus 5.5 e4e3bb1816 docs(persisted-state): the files the sw-block commands write; the daemon-store claim; the restore tuple
The no-new-file claim is narrowed to the stores the daemons read. A fourth
table lists the files the sw-block commands write on a host (the volume's
settings file and mini's record). The volume records row says a restore
target's record carries its source tuple, as in v1.0.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 02:15:33 -08:00
pingqiuandClaude Opus 5.5 cff31f5ab2 docs: persisted state, the list an in-place upgrade rests on
Every state the product writes and reads back after a restart, in three
groups (the volume's remote image, blockmaster's stores, a volume host's
files): where it lives, who writes and reads it, its encoding and what a
reader does with an unknown version, whether a test pins the v1.0.0 bytes,
and whether v1.0.1 changed it. The upgrade page's format sentence now covers
all three groups and links the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 02:09:36 -08:00