You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ai...@apache.org on 2024/09/10 06:23:17 UTC

(doris) branch branch-3.0 updated: [Chore](status) Disable stack trace printing for NotFound error status #40470 (#40592)

This is an automated email from the ASF dual-hosted git repository.

airborne pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 042fa163886 [Chore](status) Disable stack trace printing for NotFound error status #40470 (#40592)
042fa163886 is described below

commit 042fa163886fb4e6ed16494ded3ac0b2a6a155da
Author: airborne12 <ai...@gmail.com>
AuthorDate: Tue Sep 10 14:23:11 2024 +0800

    [Chore](status) Disable stack trace printing for NotFound error status #40470 (#40592)
    
    cherry pick from #40470
---
 be/src/io/fs/s3_obj_storage_client.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/io/fs/s3_obj_storage_client.cpp b/be/src/io/fs/s3_obj_storage_client.cpp
index 2c66e819833..e9d8d5be157 100644
--- a/be/src/io/fs/s3_obj_storage_client.cpp
+++ b/be/src/io/fs/s3_obj_storage_client.cpp
@@ -255,7 +255,7 @@ ObjectStorageHeadResponse S3ObjStorageClient::head_object(const ObjectStoragePat
         return {.resp = {convert_to_obj_response(Status::OK())},
                 .file_size = outcome.GetResult().GetContentLength()};
     } else if (outcome.GetError().GetResponseCode() == Aws::Http::HttpResponseCode::NOT_FOUND) {
-        return {.resp = {convert_to_obj_response(Status::NotFound(""))}};
+        return {.resp = {convert_to_obj_response(Status::Error<ErrorCode::NOT_FOUND, false>(""))}};
     } else {
         return {.resp = {convert_to_obj_response(
                                  s3fs_error(outcome.GetError(),


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org