Files
seaweedfs/seaweed-block/cmd/blockmaster
6ecc5c0ed0 Blockmaster: retire deleted metadata outside the serving path (#13430)
* perf(blockmaster): retire deleted metadata outside the serving path

* docs(block): cite the post-start retirement progress model

* test(block): drop the retirement layout identity probe site

The retirement pass no longer reads the record's LayoutID (the deferred
HEAD read log now goes through the pass skip summary), so the guard's
allowlist entry is stale and TestLayoutIdentityWriterAndReaders fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(block): keep INV-SPEC-DELETE-RETRY-001 under the statement limit

The rewritten statement was 586 characters, over the 300 that
TestInvariantStatementsAreShort allows. Keep the property in the
statement and move the visit bound to the DeleteReserved transition row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* perf(blockmaster): keep idle retirement passes silent

The worker runs a pass every freshness window (10 s by default), and each
pass logged a start and an end line even with nothing to retire: two
lines every 10 s on every idle master. Report a pass only when it has
pending eligible records.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(block): align retirement traces with the current model

* test(block): pin retirement recovery and complete slow-pass evidence

* test(block): resume restore setup after filer reconnects

* fix(block): isolate retirement catalog connection

* test(block): remove unused restore retry import

* docs(block): describe retirement guards per attempt

---------

Co-authored-by: pingqiu <pingqiu@users.noreply.github.com>
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 18:35:25 -08:00
..

Cluster imports and desired volumes

With --lifecycle-store, authority publication requires a lifecycle VolumeRecord. A placement intent or a remote chunk catalog VOLUME alone is not that record.

--cluster-spec registers each volume with positive size_bytes and its replication_factor before importing placement and starting publication. The registration is durable and idempotent. A different size/RF from an existing record refuses startup; existing protocol/transport and Kubernetes metadata are preserved. Volume registration records desired state, not authority or an epoch.

For a legacy cluster spec without size_bytes, call the LifecycleService CreateVolume RPC (the CSI create path also does this) before expecting the imported placement to publish. --lifecycle-placement-seed is placement-only: it has no capacity field, so the same CreateVolume prerequisite applies. The master refuses missing records with the volume ID and this instruction; it does not infer capacity or bypass the publication guard.

Legacy --topology without a lifecycle store keeps its existing behaviour.