pingqiuandClaude Opus 5.5 613c5d4789 fix(master): CreateVolume refuses a replication factor the master does not decide
The controller validates every replicated volume it decides against the
master's one slot count (--expected-slots-per-volume) and refuses the whole
decision when one differs. CreateVolume accepted any replication factor, so
an RF2 create on an RF3 master gave a 2-slot placement which, once its
replicas heartbeat, stopped assignment and failover for every replicated
volume of the cluster.

CreateVolume now answers FailedPrecondition, naming both counts, when a
replication factor above 1 differs from the master's. Single-replica
volumes (which never reach the check) are admitted as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 04:13:25 -08:00
Languages
Go 84.7%
Rust 7.7%
Shell 2.7%
templ 1.5%
Java 1%
Other 2.1%