fix(ecstore): reserve decommission capacity safely (#6917)

This commit is contained in:
Zhengchao An
2026-08-31 15:20:09 +08:00
committed by GitHub
parent ea01cd339c
commit 6c67086d0b
24 changed files with 10523 additions and 488 deletions
@@ -75,13 +75,13 @@ pub(super) fn rules() -> Vec<Rule> {
},
Rule {
evidence_fields: strings(["required", "target_free"]),
anchors: strings(["insufficient target pool capacity"]),
anchors: strings(["insufficient reserved physical target capacity"]),
..base(
"decom-capacity-insufficient",
P1Unavailable,
"capacity",
"pool 下线目标容量不足",
contains("insufficient target pool capacity"),
contains("insufficient reserved physical target capacity"),
"pool 下线迁移目标容量不足,decommission 无法开始。",
"先扩容目标 pool。",
)
+3 -1
View File
@@ -262,7 +262,9 @@ fn every_rule_has_a_positive_sample() {
),
(
"decom-capacity-insufficient",
msg("failed to start decommission: insufficient target pool capacity: required 100 bytes available 50 bytes"),
msg(
"failed to start decommission: insufficient reserved physical target capacity: required 100 bytes available 50 bytes",
),
),
// ops
("decom-object-failed", msg("Decommission object migration failed")),