Files
seaweedfs/seaweed-block/cmd/blockmaster
pingqiuandClaude Opus 5.5 affc3a34f6 fix(master): hold the automatic path on an ack profile mismatch
The volume answers each promotion probe with its own --replication-ack;
the probe round names every answer whose profile is missing or differs
from blockmaster's (or an unknown master profile), and both gates hold
such a volume before any fencing round (ack_profile_mismatch), as they
hold a best_effort one. One helper (automaticFailoverHold) decides both,
called before the unsupported gate reads its candidates, so a held volume
always shows why. blockmaster refuses an unknown --launcher-replication-ack.
The best_effort product-loop test now expects the hold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:51: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.