This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new e3e78a79d7c [chore](StoragePolicy) Don't print stack when invoking the
storage manager #28091
e3e78a79d7c is described below
commit e3e78a79d7c8ca14c99f8635d32c153ecbaa41b5
Author: AlexYue <[email protected]>
AuthorDate: Thu Dec 7 10:06:31 2023 +0800
[chore](StoragePolicy) Don't print stack when invoking the storage manager
#28091
---
be/src/olap/storage_policy.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/be/src/olap/storage_policy.cpp b/be/src/olap/storage_policy.cpp
index 14705b5a22f..9ad91350f69 100644
--- a/be/src/olap/storage_policy.cpp
+++ b/be/src/olap/storage_policy.cpp
@@ -37,14 +37,14 @@ Status get_remote_file_system(int64_t storage_policy_id,
std::shared_ptr<io::RemoteFileSystem>* fs) {
auto storage_policy = get_storage_policy(storage_policy_id);
if (storage_policy == nullptr) {
- return Status::InternalError("could not find storage_policy,
storage_policy_id={}",
- storage_policy_id);
+ return Status::NotFound<false>("could not find storage_policy,
storage_policy_id={}",
+ storage_policy_id);
}
auto resource = get_storage_resource(storage_policy->resource_id);
*fs = std::static_pointer_cast<io::RemoteFileSystem>(resource.fs);
if (*fs == nullptr) {
- return Status::InternalError("could not find resource, resouce_id={}",
- storage_policy->resource_id);
+ return Status::NotFound<false>("could not find resource,
resouce_id={}",
+ storage_policy->resource_id);
}
DCHECK((*fs)->type() != io::FileSystemType::LOCAL);
return Status::OK();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]