mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 19:17:28 +01:00
Degraded growth never leaves fewer than two copies: degradedPlacements tries totals from copies-1 down to degradedGrowthMinCopies (2), so for a two-copy placement such as 010 it tries nothing, and a 010 assign with a rack down fails even on a master with degraded growth. The E9 rack-loss store asked for 010, so its degraded-growth expectation could never hold. The E9 stores now use one volume server in each of three racks and placement 020. With every rack up the copies land in three racks; with rackC stopped, a store with degraded growth places exactly two copies, one in rackA and one in rackB (010, the first relaxed placement), and a store without it refuses, as before. The slot-capacity twin moves to 020 over the same three racks with one 1 MB slot per server, so the first volume takes every slot. MemFiler's topology mode takes the copy count and follows the same order and floor; a new test asserts that a 010 placement with a rack down never degrades and that 020 degrades to rackA and rackB. No red commit: this corrects the cells' design, not a fake or product behaviour. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>