[fix](log) regularise some BE error type and fix a load task check #28729

This commit is contained in:
zclllyybb
2023-12-25 10:45:19 +08:00
committed by GitHub
parent 3273e0e635
commit f374beaa4e
19 changed files with 82 additions and 107 deletions

View File

@ -273,8 +273,8 @@ Status check_migrate_request(StorageEngine& engine, const TStorageMediumMigrateR
// check local disk capacity
int64_t tablet_size = tablet->tablet_local_size();
if ((*dest_store)->reach_capacity_limit(tablet_size)) {
return Status::InternalError("reach the capacity limit of path {}, tablet_size={}",
(*dest_store)->path(), tablet_size);
return Status::Error<EXCEEDED_LIMIT>("reach the capacity limit of path {}, tablet_size={}",
(*dest_store)->path(), tablet_size);
}
return Status::OK();
}