Commit Graph
137 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 f79c1cad19 docs: verify checks every named snapshot; drop the refused --all-snapshots
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 23:32:13 -08:00
pingqiu 6939b1446f Merge #802 7f3decb7 into train/20261130-t3 2026-11-29 19:59:58 -08:00
pingqiu 78c73da039 Merge #798 bf833228 into train/20261130-t3 2026-11-29 19:59:57 -08:00
pingqiu f00c2e6a81 Merge #782 ed35f137 into train/20261130-t3 2026-11-29 19:59:56 -08:00
pingqiu ed35f1377a Run abandoned probe cleanup after catalog admission 2026-11-29 19:54:57 -08:00
pingqiu 7c4d6043c4 Clean abandoned conditional HEAD probes on catalog startup 2026-11-29 19:47:48 -08:00
pingqiu 96229aec75 test: classify isolated startup probe identity mint 2026-11-29 19:28:23 -08:00
pingqiuandClaude Opus 5.5 389bca6415 docs(standalone): do not move or detach other volumes while a large restore is being created
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 16:56:20 -08:00
pingqiu 61f1af6342 fix: require the raw filer precondition verdict in the startup probe 2026-11-29 16:45:42 -08:00
pingqiu e7ce492813 fix: warn on disposable probe cleanup failure without refusing startup 2026-11-29 16:45:42 -08:00
pingqiu f3b0a678aa fix: require wrong-generation HEAD updates to refuse at startup 2026-11-29 16:45:28 -08:00
pingqiuandClaude Opus 5.5 d37418840c docs: supported replicated volumes and restore independence come in a later release
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 16:44:41 -08:00
pingqiu b86de5fcdd fix: retain per-volume snapshot grid and clamp future history 2026-11-29 16:36:15 -08:00
pingqiu 5f90080372 fix: seed snapshot deadlines from persisted scheduled history 2026-11-29 16:23:41 -08:00
pingqiu 0bbaf4836e fix: confirm master leadership after listing filers 2026-11-29 15:54:36 -08:00
pingqiu 6087669843 docs: state filer census registration and version limits 2026-11-29 15:54:20 -08:00
pingqiu baee502f07 fix: let the agreed master leader decide the filer census 2026-11-29 15:54:19 -08:00
pingqiu 8897b14971 feat: stop restarted holders after recorded revocation 2026-11-29 15:51:36 -08:00
pingqiu e372193edc Merge main f5d43af2 (#787, #789) into train/20261129-t1
# Conflicts:
#	docs/design/invariants.md
2026-11-29 14:33:59 -08:00
pingqiuandClaude Opus 5.5 a90fab8c11 docs: what the single-filer start check does not detect
At start, the leader master listed this filer and no other. A filer
added within about 15 seconds before the start, or at any time after, is
not detected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:34:22 -08:00
pingqiuandClaude Opus 5.5 68823d5b90 fix(chunkstore): the single-filer census passes only when every master answered
Replaces the bound-classification fix with a rule without a clock. A
round passes only when every master answered, none refused, and at least
one listed exactly the configured filer. A master that does not answer,
for any reason and at any time (it stalls, answers DeadlineExceeded
before its deadline, is down, or its address does not parse), leaves the
round unconfirmed, and the masters are asked again. The bound only ends
the asking. Then the start is refused, naming the masters that did not
answer, with "rerun when they answer". The two time tests are replaced
by one rule test with no timing assertion, in both master orders. Price,
stated on the standalone page: a chunk volume does not start while any
master of the filer's group is unreachable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:01:53 -08:00
pingqiu 7db79cd689 Merge #777 (1feaa18b) 2026-11-29 11:39:29 -08:00
pingqiu 24d43ec213 Merge #779 (79602675) 2026-11-29 11:39:24 -08:00
pingqiu 86ebb8fa5f Merge #780 (30b99055) 2026-11-29 11:39:19 -08:00
Ping Qiu 686d11e273 Merge pull request #772 from seaweedfs/docs/ctrl-loss-tmo
docs(standalone): a partition longer than ctrl-loss-tmo removes the guest's disk
2026-11-29 10:53:51 -08:00
pingqiu 79602675e1 docs: define stable volumes for missing and orphan verification 2026-11-29 10:43:08 -08:00
pingqiu ba524999fb fix: require master workspace lease for chunk volume startup 2026-11-29 10:35:23 -08:00
pingqiu 88cac7528c fix: require stable HEAD generations for verify findings 2026-11-29 10:31:57 -08:00
pingqiuandClaude Opus 5.5 1feaa18b31 docs: a restored volume stays bound to its source snapshot; drop pages of the old store
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 10:30:17 -08:00
pingqiuandClaude Opus 5.5 48e812523e docs(standalone): the disk goes at ctrl-loss-tmo less the re-grant; the setting never redirects
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:54:06 -08:00
pingqiuandClaude Opus 5.5 088226f832 docs(standalone): a partition longer than ctrl-loss-tmo removes the guest's disk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:44:20 -08:00
pingqiuandClaude Opus 5.5 d67d27b49d docs(standalone): rerun a seal that runs out of time; never revoke without one
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:40:17 -08:00
pingqiu d2ecca2dee fix: keep default attach work outside the assignment allowance 2026-11-29 08:19:55 -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 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
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
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
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 34cef0aa2b fix verify uncertainty and clarify offline inspection 2026-11-29 00:01:57 -08:00
pingqiu ced7173011 verify canonical production volume directories 2026-11-29 00:01:57 -08:00
Ping Qiu 36d90c3f66 Merge pull request #730 from seaweedfs/docs/readme-mini
docs(readme): sw-block mini on main, after the v1.0.0 first check
2026-11-28 23:42:45 -08:00
pingqiuandClaude Opus 5.5 8e9ed5d478 docs(standalone): mini's quick start says a restore is not possible inside a mini trial yet
The quick start said snapshots and restore work at once with weed; a
restore into a new volume needs the standalone setup, as the README says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 23:09:20 -08:00
Ping Qiu 6d63003461 Merge pull request #735 from seaweedfs/feat/volume-start-stop
feat(sw-block): volume start and volume stop
2026-11-28 21:39:01 -08:00
Ping Qiu dfb77aef28 Merge pull request #705 from seaweedfs/fix/cleaning-convergence
feat: resume holder cleaning and reclaim unused metadata
2026-11-28 19:56:05 -08:00
pingqiuandClaude Opus 5.5 a01f09e6fa fix(sw-block): volume stop keeps its checks for a transitional unit; a cut answer needs its fields
Review follow-up. activating, deactivating and reloading may have a live
holder (reloading is an active unit): the guest read and the cut stay,
refusing when the holder is down, and --force --no-cut stops the unit. A
cut's success answer must carry cutLSN and headGen (LSN 0 is an empty
volume's); without them the outcome is unknown. The lost-answer fake now
records its publication, and the refusal reports that confirmed cut.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:25:42 -08:00
pingqiuandClaude Opus 5.5 dc2ccfce21 fix(sw-block): volume stop stops an activating unit; the printed cut time precedes the cut
Review follow-up. Only an inactive or failed unit is nothing to stop; a
unit systemd is restarting (activating, deactivating, reloading) is
stopped without a guest read or a cut, and the output says no cut was
taken. The time in the closing sentence is read before the cut's
request, so the cut covers every write before it. A timed-out cut's
refusal says its progress is kept; the help and the page say how to add
a new volume until volume start can create one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:25:41 -08:00
pingqiuandClaude Opus 5.5 d67ffe029c feat(sw-block): volume start and volume stop
volume start runs an existing volume as sw-blockvolume@<volume>: it
writes the unit's settings file, resolves the layout id, enables and
starts the unit, waits until it serves, and prints the connect command.
volume stop refuses while a guest is connected (unless --force), takes a
cut, refuses when the cut failed or its outcome is unknown (unless
--no-cut, giving the recovery point's age), stops the unit, and ends
with what it promises: the recovery point in the object store is the
cut; writes after it are on this host only.

mini and the unit share one blockvolume settings builder; a test renders
the settings through the shipped unit and compares them with mini's
flags. A second supervisor on one durable root is refused (guard test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:25:41 -08:00
Ping Qiu 86f0b373fd Merge pull request #682 from seaweedfs/feature/create-and-place
feat: create and place RF1 volumes through the running master
2026-11-28 19:24:50 -08:00