Commit Graph
4124 Commits
Author SHA1 Message Date
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
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
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
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
Ping Qiu 8e131ca2b0 Merge pull request #751 from seaweedfs/docs/troubleshooting-head-log
docs(troubleshooting): reading the HEAD write log lines
2026-11-29 02:05:39 -08:00
pingqiuandClaude Opus 5.5 735e4e7d11 docs(troubleshooting): reading the HEAD write log lines
Every acknowledged HEAD write is logged with its cause, generations and
duration; a lost answer is logged at WARN as an unknown outcome. The section
names the causes and what a run of unknown outcomes points to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 01:55:56 -08:00
Ping Qiu 0c93136db5 Merge pull request #747 from seaweedfs/test/restart-barrier
test(authority): after a blockmaster restart a different holder waits for the restart floor
2026-11-29 01:52:21 -08:00
Ping Qiu 60f5c64cfe Merge pull request #736 from seaweedfs/feat/shell-inspection
feat: add shell inspections and ordered cluster diagnostics
2026-11-29 01:50:53 -08:00
Ping Qiu fe3e6fd868 Merge pull request #749 from seaweedfs/fix/typed-restore-codes
fix(sw-block): typed codes for a foreign-source restore and an unknown volume
2026-11-29 01:46:29 -08:00
pingqiu 1d5bb78c14 test: use the neutral primary host throughout shell fixtures 2026-11-29 01:25:08 -08:00
pingqiuandClaude Opus 5.5 c93f2e1ddc test: the process-level restore ladder expects restore_source_not_own
A restore from a restore target's snapshot now refuses with the typed
code; the two ladder checks still read the old not_admitted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 01:22:07 -08:00
pingqiu e4458de5cd test: use a neutral server identity in shell checks 2026-11-29 00:59:02 -08:00
pingqiuandClaude Opus 5.5 ed82716e7d docs: the foreign-source restore code and the volume_not_found contract change
The restore page now names restore_source_not_own for a snapshot of a
restore target; a v1.0.1 release note lists both codes and calls out that
an unknown volume moves from bad_request (exit 2) to volume_not_found
(exit 1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 00:56:40 -08:00
pingqiuandClaude Opus 5.5 eea9a6a6bb docs(invariants): INV-CLI-TYPED-REFUSAL-001 for the typed restore and volume codes
The regression row C.4 asks for: the chunk CLI's restore_source_not_own
(from the master's typed reason) and volume_not_found, with their tests;
the refusal itself stays INV-CREATE-ONE-IDENTITY-001's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 00:55:36 -08:00
pingqiuandClaude Opus 5.5 58c5a47243 fix(sw-block): typed codes for a foreign-source restore and an unknown volume
The master's refusal of a restore whose snapshot names another volume's
chunks carries a typed reason (an ErrorInfo detail, RESTORE_SOURCE_NOT_OWN)
and the CLI maps it to its existing JSON code restore_source_not_own
instead of the generic not_admitted. A volume the master does not know
(NotFound from the resolve) exits with volume_not_found. A client decides
by these codes, never by message text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 00:55:36 -08:00
Ping Qiu 682d0e4d02 Merge pull request #748 from seaweedfs/docs/lease-regrant-floor
docs: the re-grant floor is for an expired lease or a forced move; a refused restore changes nothing
2026-11-29 00:54:19 -08:00
Ping Qiu 0950e8f493 Merge pull request #709 from seaweedfs/fix/verify-production-layout
Fix verification of production volume directories
2026-11-29 00:45:41 -08:00
pingqiu 2e18bee74b fix(cli): retain completed cleaning generation diagnostics 2026-11-29 00:40:31 -08:00
pingqiu 94aa289b77 fix(cli): distinguish local-engine snapshot capability 2026-11-29 00:40:31 -08:00
pingqiu 62368f2d5f fix(cli): report unavailable cleaning evidence and snapshot capability 2026-11-29 00:40:31 -08:00
pingqiu be00b13432 fix: link diagnostic findings to GitHub heading anchors 2026-11-29 00:40:31 -08:00
pingqiu 2130406242 feat: inspect typed holder maintenance results 2026-11-29 00:40:31 -08:00
pingqiu 6aa486c2ac test: require explicit typed cut outcomes in shell checks 2026-11-29 00:40:31 -08:00
pingqiu b4102766bc test: refuse unbounded clock skew in shell diagnostics 2026-11-29 00:40:31 -08:00
pingqiu 2aec1d503b feat: add read-only shell inspections and ordered cluster checks 2026-11-29 00:40:31 -08:00
pingqiuandClaude Opus 5.5 cec6bb8785 docs: troubleshooting page, one section per cluster.check line
The sections follow cluster.check's checks in start-up order; each begins with the cure the command prints, then what you see and the fix, linking the existing guide sections. The HEAD-write log section takes the merged format later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 00:40:04 -08:00
Ping Qiu c6e3589dec Merge pull request #737 from seaweedfs/feat/maintenance-status
feat: expose holder maintenance pass observations
2026-11-29 00:38:05 -08:00
pingqiuandClaude Opus 5.5 0274d76fd7 docs(lifecycle): the re-grant barrier is for a lease expired against the stored horizon
A holder whose own grant ran out while the stored horizon is still ahead,
and a live holder renewing at the same epoch, are granted at once, also
right after a blockmaster restart while they renew within the lease TTL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 00:25:47 -08:00
pingqiuandClaude Opus 5.5 a53dbd53aa docs(standalone): a refused restore of a restore target changes nothing
The page said the refused request still binds the target's name; a restore
refused for good removes its pending record, so the name stays free and a
restore from the source's own snapshot may use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 00:22:29 -08:00
pingqiu f75e760ed4 Keep typed cut status ahead of maintenance diagnostics 2026-11-29 00:14:24 -08:00
pingqiu 3570a483d0 test: exercise absent HEAD maintenance diagnostics 2026-11-29 00:13:36 -08:00
pingqiu 15d5dc1ba5 test: enumerate the maintenance diagnostic HEAD reader 2026-11-29 00:13:36 -08:00
pingqiu b7a33f4f56 fix: separate maintenance diagnostics from callback failures 2026-11-29 00:13:36 -08:00
pingqiu 99edd52df7 test: distinguish planned objects from retained live content 2026-11-29 00:13:36 -08:00
pingqiu 8cc9eba736 test: pin retention-only maintenance as non-clean evidence 2026-11-29 00:13:36 -08:00
pingqiu 74a80dd446 feat: report planned maintenance objects by kind 2026-11-29 00:13:36 -08:00
pingqiu 133c5aef37 fix: report total maintenance removals and object breakdown 2026-11-29 00:13:36 -08:00
pingqiu 7948d1a167 feat: expose holder maintenance pass observations 2026-11-29 00:13:36 -08:00
Ping Qiu 7fe026461e Merge pull request #741 from seaweedfs/test/cut-attempt-progress
test(storage): a cut attempt that runs out of time leaves uploads the next attempt keeps
2026-11-29 00:12:29 -08:00
pingqiuandClaude Opus 5.5 aec4775c53 docs(lifecycle): the re-grant floor after a blockmaster restart is for an expired lease or a forced move
A live holder inside its lease renews at once after a blockmaster restart,
at the same epoch; the floor of 30 s plus the skew after the restart applies
only to an expired lease's re-grant and to a forced move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 00:12:28 -08:00
Ping Qiu c157b7f5ae Merge pull request #739 from seaweedfs/fix/commit-precompute
fix(layout): plan a commit once and bound only the HEAD step
2026-11-29 00:11:57 -08:00
pingqiuandClaude Opus 5.5 267737f904 test(authority): after a restart a different holder waits for the restart floor; the live holder renews
A forced move to another holder after a blockmaster restart is refused
until restart + TTL + skew, even after the old lease's expiry plus skew has
passed; the same live holder renews at once. Pins the restart rule
(authority.go load) together with the forced barrier.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 00:07:50 -08:00
pingqiu 21cbf815e4 docs: distinguish unresolved verification inputs 2026-11-29 00:02:15 -08:00
pingqiu 34cef0aa2b fix verify uncertainty and clarify offline inspection 2026-11-29 00:01:57 -08:00