mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
613c5d478909c21c179d3c752a1eff51fb047156
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>
Languages
Go
84.7%
Rust
7.7%
Shell
2.7%
templ
1.5%
Java
1%
Other
2.1%