Files
seaweedfs/seaweed-block/cmd/blockmaster
pingqiuandClaude Opus 5.5 ab747bfa47 change: cut over to the content-named store and delete the legacy store
The runtime stores each volume in one content-named layout on the filer:
immutable chunks, segments and roots are ordinary filer files, and one
HEAD entry per volume carries every conditional commit. A holder claims
HEAD under its granted epoch and claim id, cuts in its own session,
commits by HEAD generation and position, and is fenced when its identity
moves. Catalog, restore, snapshot, retention, cleaning, verify and volume
delete run through the layout kernel; the master mints the layout
identity, reads HEAD proofs and holds the delete reservation and lease
barrier. The legacy store, its intents and its compatibility paths are
removed; existing stores are recreated, not converted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:59:23 -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.