fix(tier): drain cleanup before tier removal (#7213)

Co-authored-by: houseme <housemecn@gmail.com>
Co-authored-by: Zhengchao An <anzhengchao@gmail.com>
This commit is contained in:
cxymds
2026-09-06 10:10:48 +08:00
committed by GitHub
parent 941fae61a0
commit 0a5d4cef0e
4 changed files with 612 additions and 59 deletions
+10
View File
@@ -613,6 +613,16 @@ impl Operation for RemoveTier {
return if err.code == ERR_TIER_NOT_FOUND.code {
Err(S3Error::with_message(S3ErrorCode::Custom("TierNotFound".into()), "tier not found"))
} else if let Some(response) = tier_backend_error_response(&err) {
warn!(
event = EVENT_ADMIN_TIER_STATE,
component = LOG_COMPONENT_ADMIN,
subsystem = LOG_SUBSYSTEM_TIER,
action = "remove_tier",
tier_name = %tier_name,
result = "remove_blocked",
error = ?err,
"admin tier state"
);
Err(response)
} else {
warn!(