fix(ecstore): require durable decommission ledger format (#6871)

This commit is contained in:
cxymds
2026-08-30 08:47:09 +08:00
committed by GitHub
parent 1e8c8d4cd5
commit 21e5b3dc64
7 changed files with 382 additions and 16 deletions
@@ -1553,6 +1553,9 @@ pub enum ControlPlaneErrorCode {
/// The peer answered but its storage/IAM layer is not initialized yet
/// (legacy string form: "errServerNotInitialized").
ControlPlaneErrorNotInitialized = 1,
/// The peer rejected a control-plane request before changing durable state.
/// error_info carries the actionable validation reason.
ControlPlaneErrorInvalidArgument = 2,
}
impl ControlPlaneErrorCode {
/// String value of the enum field names used in the ProtoBuf definition.
@@ -1563,6 +1566,7 @@ impl ControlPlaneErrorCode {
match self {
Self::ControlPlaneErrorUnspecified => "CONTROL_PLANE_ERROR_UNSPECIFIED",
Self::ControlPlaneErrorNotInitialized => "CONTROL_PLANE_ERROR_NOT_INITIALIZED",
Self::ControlPlaneErrorInvalidArgument => "CONTROL_PLANE_ERROR_INVALID_ARGUMENT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -1570,6 +1574,7 @@ impl ControlPlaneErrorCode {
match value {
"CONTROL_PLANE_ERROR_UNSPECIFIED" => Some(Self::ControlPlaneErrorUnspecified),
"CONTROL_PLANE_ERROR_NOT_INITIALIZED" => Some(Self::ControlPlaneErrorNotInitialized),
"CONTROL_PLANE_ERROR_INVALID_ARGUMENT" => Some(Self::ControlPlaneErrorInvalidArgument),
_ => None,
}
}
+3
View File
@@ -30,6 +30,9 @@ enum ControlPlaneErrorCode {
// The peer answered but its storage/IAM layer is not initialized yet
// (legacy string form: "errServerNotInitialized").
CONTROL_PLANE_ERROR_NOT_INITIALIZED = 1;
// The peer rejected a control-plane request before changing durable state.
// error_info carries the actionable validation reason.
CONTROL_PLANE_ERROR_INVALID_ARGUMENT = 2;
}
message PingRequest {