Commit Graph
144 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 6bf0445fcd host: recovery_stalled counts every synced startup slice and pauses for the master's authority wait
The startup inactivity window renewed only on replay, scan, map and attach
work. A new store's prezero and the WAL fence wrote and synced whole
regions with no report, so on a slow disk the window could end inside one
silent step; and the chunk layer's wait for master authority, a wait the
master bounds, ran out the same window.

- storage: phases RecoveryCreate and RecoveryFence; syncedSlices runs a
  sized step 4 MiB at a time and reports a slice only after its sync;
  prezeroNewStore uses it, and recovery reports the fence's synced bytes.
- durable: create passes RecoveryProgress; AuthorityWait tells the host
  when the authority wait starts and ends; Chunk.AuthorityGap names the
  projection fields that withhold authority.
- host: recovery_timeout becomes recovery_stalled; waits are counted, the
  window pauses while any runs and restarts when the last ends, a stall
  latched before stays latched; /status RecoveryWait=awaiting_authority.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:23:33 -08:00
pingqiu c967152e63 docs: qualify inline and replicated needle verification 2026-12-01 01:32:59 -08:00
pingqiu 95abcb3183 fix: verify backing needles with HEAD and retain exact chunk hashes 2026-12-01 00:42:47 -08:00
pingqiu 697afeedf8 fix: validate owner identity before verify deduplication 2026-12-01 00:19:15 -08:00
pingqiu 950d636e93 fix: verify chunk bindings without reading their bodies 2026-12-01 00:03:07 -08:00
pingqiuandClaude Opus 5.5 68045d9698 durable: remove the smartwal and parallel-walstore engines
- The provider refuses the removed names and, under every selector and
  before any selector comparison, a volume carrying their magic (SWAW;
  SWPW in either header slot), reading the file read-only and never
  modifying it. blockvolume --durable-impl and the launcher refuse the
  names with the same advice; the chart schema allows walstore only.
- core/storage/smartwal, core/storage/parallelwal and
  cmd/sw-block-testutil (whose one command corrupted smartwal records)
  are deleted, with the helm smartwal-corruption scenario and the
  parallel-walstore gate script.
- The replication harness runs on walstore; tests that ran on a removed
  engine only because a stub needed some store move to walstore, and the
  state_convergence label test moves to the in-memory BlockStore.
- sw-block cluster.check drops the removed engines' cases.
- Ledger: INV-OPEN-REMOVED-ENGINE-REFUSED-001 and
  INV-OPEN-REMOVED-ENGINE-NAME-REFUSED-001, an OpenRefused edge in M1, and
  the rows citing the removed tests updated. Docs: block-design 1.3 now
  describes the removal, the smartwal deep-dive and figure are gone, the
  scripts default to walstore, and the v1.1 notes carry the removal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:38:54 -08:00
pingqiu 2653a662ae docs: a read-only restored volume fetches every chunk again after any restart
The v1.0.1 known limit and the standalone restore steps said fetched chunks
are fetched again after a crash; a restored volume that has only been read
takes no checkpoint, so it fetches all of them again after any restart,
clean included, until a write or its next checkpoint records them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 3759fae784)
2026-11-30 06:43:46 -08:00
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