mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-02 10:18:10 +00:00
fix(ecstore): reserve decommission capacity safely (#6917)
This commit is contained in:
@@ -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。",
|
||||
)
|
||||
|
||||
@@ -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")),
|
||||
|
||||
Reference in New Issue
Block a user