fix(ecstore): clarify V3 capacity gate guidance

This commit is contained in:
马登山
2026-09-02 21:53:51 +08:00
committed by cxymds
parent 669d35c412
commit 454be3e48e
+5 -1
View File
@@ -215,9 +215,11 @@ fn ensure_decommission_ledger_persistence_supported_for(
"decommission".to_string(),
"pool-metadata-version".to_string(),
format!(
"durable unresolved-entry recovery requires pool metadata V2 or V3; enable both {} and {} only after every reader and writer supports V2",
"durable unresolved-entry recovery requires pool metadata V2 or V3; enable either the {} + {} V2 gate or the {} + {} V3 gate only after every reader and writer supports that format",
rustfs_config::ENV_POOL_META_V2_WRITE,
rustfs_config::ENV_POOL_META_V2_FLEET_CONFIRMED,
rustfs_config::ENV_POOL_META_V3_WRITE,
rustfs_config::ENV_POOL_META_V3_FLEET_CONFIRMED,
),
))
}
@@ -16089,6 +16091,8 @@ mod tests {
.expect_err("half-enabled rollout gates must not admit decommission");
assert!(matches!(err, Error::InvalidArgument(..)));
assert!(err.to_string().contains("durable unresolved-entry recovery"));
assert!(err.to_string().contains(rustfs_config::ENV_POOL_META_V3_WRITE));
assert!(err.to_string().contains(rustfs_config::ENV_POOL_META_V3_FLEET_CONFIRMED));
}
#[test]