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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to