Commit Graph
55 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 1b9dbbaea3 feat: negotiate NVMe command retry delays for transient readiness 2026-12-01 20:15:19 -08:00
pingqiu 78c73da039 Merge #798 bf833228 into train/20261130-t3 2026-11-29 19:59:57 -08:00
pingqiuandClaude Opus 5.5 e4de6bdef3 docs: v1.0.1 keeps new volumes at 256 GiB; 1 TiB moves to v1.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 17:19:04 -08:00
pingqiu 8897b14971 feat: stop restarted holders after recorded revocation 2026-11-29 15:51:36 -08:00
pingqiu 9fda14ccad Merge main 8acddaaf (#791) into train/20261129-t1 2026-11-29 14:28:42 -08:00
pingqiu 2316810fdb feat: include target identity in issued force-move JSON 2026-11-29 13:03:01 -08:00
pingqiu ba524999fb fix: require master workspace lease for chunk volume startup 2026-11-29 10:35:23 -08:00
pingqiu 677b1bb256 docs: pin forced-move dry-run admission to the JSON answer 2026-11-29 08:23:21 -08:00
pingqiu efb914a5ea fix(cli): retain kept HEAD and loss bounds in forced-move JSON 2026-11-29 08:23:08 -08:00
pingqiu 88f2f95cde feat(cli): expose typed force-move admission as JSON 2026-11-29 08:23:08 -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 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 0c4fd5a65e Observe completed local recovery work with one inactivity clock 2026-11-29 01:09:10 -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 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
pingqiuandClaude Opus 5.5 552778c546 docs(readme): direction states what was run where; mini; Kubernetes alpha
The planned hand-over ran across two machines on the release candidate (recorded in the measurements, and the lifecycle table's row updated); the forced move was tested with two server identities on one machine and restores from the last cut. v1.0.1 lists sw-block mini first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 14:16:22 -08:00
pingqiuandClaude Opus 5.5 fe85c6948e test: a delete refused by dependents leaves the volume reserved
Against the real master: a volume-delete refused with
snapshot_has_dependents has already reserved the volume, so workspace
show answers "workspace: volume is being deleted" (exit 1) and HEAD with
its snapshots is unchanged. The control, a delete refused before any
reservation (an established volume under a live lease), leaves show
answering the volume normally. The volume-lifecycle row cites it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 18:57:19 -08:00
pingqiuandClaude Opus 5.5 be7b2c1fd5 docs: delete after a dependents refusal, failover time, profile change order
- A volume-delete refused with snapshot_has_dependents has already
  reserved the volume: it does not serve again; delete or release the
  restored volume, then rerun with the same request id.
- A sync-quorum volume gets its new primary about 30 to 35 s after its
  host is lost with default flags (freshness window, then two probe
  rounds of at most 2 s each).
- The ack profile change order: stop the replicated volumes, change both
  flags, restart blockmaster, start the volumes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:44:28 -08:00
pingqiuandClaude Opus 5.5 ecdaaaf59b docs: the failover holds, the ack profile rule, delete and move answers
- best-effort volumes and an ack-profile mismatch are held, not failed
  over by themselves (best_effort_no_automatic_failover,
  ack_profile_mismatch); blockmaster refuses an unknown
  --launcher-replication-ack.
- Change the ack profile only with the replicated volumes stopped; a
  primary assigned under another profile does not serve and says so.
- A volume created at run time and not in the cluster spec is served only
  with the lifecycle loop on.
- volume-lifecycle: a delete under a live lease answers not_admitted
  ("deletion refused before persistence"); ordinary snapshots never refuse
  a delete, a snapshot with dependents does (snapshot_has_dependents);
  blockmaster has no same-host refusal for a forced move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:12:09 -08:00
pingqiu 4a16db58c0 docs: align the delete gate with dependent snapshots and lease expiry 2026-11-26 06:56:57 -08:00
pingqiu a316f86114 docs: keep a signal-stopped sealed holder down until deletion 2026-11-26 06:36:25 -08:00
pingqiuandClaude Opus 5.5 9189845eee docs: a snapshot delete that loses its HEAD update is a retryable conflict
The holder's cleaning or a snapshot can change HEAD between the delete's
read and write; the delete then exits 1 with code conflict, retryable,
having changed nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 05:32:09 -08:00
pingqiu 0d286a1a44 docs: verify moved-holder claims from the layout HEAD 2026-11-26 04:43:40 -08:00
pingqiuandClaude Opus 5.5 e80f046ba1 docs: a replicated volume needs blockmaster's lifecycle loop
With replication_factor above 1 under --cluster-spec, blockmaster assigns
the primary through its lifecycle loop, which runs only with
--lifecycle-product-loop-interval (100ms, as the shipped chart sets); the
default 0 leaves such a volume without a primary. The single-replica starts
need no loop. The operator guide names the tests that run the replicated
start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:50:35 -08:00
pingqiuandClaude Opus 5.5 824e6f9211 docs: deleting a volume that never served waits for its lease horizon
Step 4 is refused with "live until <time>" while the lease its first start
was granted could still be live; the same command run after that time
completes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:53:28 -08:00
pingqiu 61f2bd8fe9 Merge the restore output contract docs
# Conflicts:
#	docs/volume-lifecycle.md
2026-11-26 00:47:46 -08:00
pingqiu 9e32722bb4 docs: distinguish restore volume names from store directory results 2026-11-26 00:45:49 -08:00
pingqiu 0af8deaa86 Merge the operator HEAD view docs 2026-11-26 00:45:11 -08:00
pingqiu f3ce4a511f docs: state the operator HEAD view contract
The former operator examples named the retired storage HEAD fields remoteLSN and detachedBy and called live state active. Document the current ops chunk show wrapper and exported layout.Head field spelling: Position, ClaimID, empty live State, detached State and Current. The detached HEAD is the stop image; generation is record readout. This supplies the operator contract for the procedure HEAD-view fixture migration. No product behavior changes.
2026-11-26 00:41:57 -08:00
pingqiuandClaude Opus 5.5 1995f39f1d docs: the snapshot list's answer, and snapshot-delete's
ops chunk snapshots answers a JSON array of {name, root[, dependents]} in
name order; an entry has no state or cut position. snapshot-delete answers
{"volume":"<name>-<id8>","name":...,"state":"absent"}.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:41:29 -08:00
pingqiuandClaude Opus 5.5 e4177679e1 docs: what the blockmaster restart for a restore target does to serving volumes
Adding a restore target to the cluster spec means restarting blockmaster.
Serving volumes ride through a restart answered within 10 s; a longer one
is fail-closed (fence at lease end, exit 75, serve again after the barrier,
at least 50 s after the restart), each with the test that shows it. The
start-wait text no longer describes a start that ends before the barrier,
and the operator guide's host-loss step says the returning old host exits
78 and is not restarted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:35:07 -08:00
pingqiuandClaude Opus 5.5 72fc5ae349 docs: restore targets are placement-only; old host after a forced move exits 78
A restore target is listed in the cluster spec with its placement and no
size_bytes, so the restore creates its record with the snapshot's
geometry; an entry with size_bytes creates an ordinary volume and the
restore into it is refused with target_exists. The old host after a forced
move exits 78 (reason=moved) and is not restarted. The started-too-early
gate row is removed (a start now waits through the barrier), and the
headroom test name is updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:25:37 -08:00
pingqiuandClaude Opus 5.5 1c7d619ded docs: an older blockmaster copy can reuse epochs; no promised refusal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:46:15 -08:00
pingqiuandClaude Opus 5.5 004fd30d35 docs: restored-volume snapshots, release, and three operator rules
A restored volume takes no scheduled snapshot until its device has been
read once; a manual one names the source's chunks and cannot be
restored. ops chunk release is a repair step. The lifecycle rules name
one blockmaster per cluster, no restore of its directory from an older
copy, and that a deleted volume's name cannot be created again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:43:57 -08:00
pingqiuandClaude Opus 5.5 3bc43a6879 docs: restore as v1 ships it; fork removed
Restore is created with --master and fills on access (no restore driver,
no background copy); its source snapshot stays a dependent for the
target's life. Fork and template retirement are not in this release.
The documented show, snapshots and snapshot-delete commands get the
required --master.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:36:53 -08:00
pingqiuandClaude Opus 5.5 77e150d22e blockmaster: one HEAD reader, the layout catalog
The master read HEAD two ways with two settings: the layout catalog
(filer gRPC, --chunk-filer) for create and restore, and plain filer HTTP
?metadata=true (--workspace-head-base-url) for the workspace move admission
and the revoke ACK. The workspace reader now reads through the catalog it
already dials: BCatalog.ReadHeadObserved returns HEAD, decoded by the same
DecodeLayoutHeadEntry, with the entry's modification time from that same
lookup (seconds, as the HTTP metadata gave it). The proof mapping is
unchanged: identity from the master's lifecycle record, deleting, unclaimed,
detached, generation, epoch, holder and position; an absent HEAD refuses
with ErrHeadAbsent.

The HTTP reader and --workspace-head-base-url are deleted, with the unit's
and the env file's setting and the docs. The master tests run the same
refusal table against a catalog on the in-memory filer (the HTTP-only
redirect and envelope cases have no counterpart). The fixtures that passed
the flag give the master the filer flags instead; the head-size and F1
ladder masters had none and could not dial the catalog at all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:29:50 -08:00
pingqiuandClaude Opus 5.5 e04178d67b docs: the master wait's window start and the identity refusal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 00:23:48 -08:00
pingqiuandClaude Opus 5.5 fc990eef8a test: the barrier wake is jittered; a final refusal names the exit over superseded; docs
The lifecycle page says how the start waits (no bound while blockmaster
gives no reply, 30 s from the first answer or the barrier), what the new
log lines mean, and what to do on exit 78 reason=moved or reason=deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 23:46:16 -08:00
pingqiuandClaude Fable 5.2 ca9a094b86 docs: the delete procedure and two crash procedures are tested
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 23:53:07 -08:00
pingqiuandClaude Fable 5.2 bfd7aaed85 docs: a repeated snapshot request while its snapshot is being deleted
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 23:33:58 -08:00
pingqiuandClaude Fable 5.2 d3a35df524 docs: snapshot names and retries
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 18:19:38 -08:00
pingqiuandClaude Fable 5.2 84252ed21f docs: how to delete a volume; README states the real delete rule
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 15:56:42 -08:00
pingqiuandClaude Fable 5.2 ca6ea25f66 docs: lifecycle, after a crash the process exits 75 and the unit restarts it; run table from the procedure tests
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 13:26:59 -08:00
pingqiuandClaude Fable 5.2 62b71734c1 docs: lifecycle, the returning old host after a forced move as the procedure test shows it
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 13:26:06 -08:00
pingqiuandClaude Fable 5.2 85c2ec3364 docs: lifecycle setup, quote the refusal text with its cure
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 11:22:48 -08:00
pingqiuandClaude Fable 5.2 ef9ec6bba6 docs: lifecycle setup, register nodes by the address they reach blockmaster from
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 11:13:20 -08:00
pingqiuandClaude Fable 5.2 6d45520496 docs: lifecycle, one live process per volume per host by the host lock
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 10:19:53 -08:00