This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 23c5d52b04a branch-2.1: [fix](s3) improve error msg #45360 (#45432)
23c5d52b04a is described below
commit 23c5d52b04a2f83e0effdf765ee955415d921dee
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Dec 16 14:59:08 2024 +0800
branch-2.1: [fix](s3) improve error msg #45360 (#45432)
Cherry-picked from #45360
Co-authored-by: Socrates <[email protected]>
---
be/src/io/fs/err_utils.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/be/src/io/fs/err_utils.cpp b/be/src/io/fs/err_utils.cpp
index 8552c647cdd..fbae0ff927d 100644
--- a/be/src/io/fs/err_utils.cpp
+++ b/be/src/io/fs/err_utils.cpp
@@ -115,13 +115,13 @@ Status s3fs_error(const Aws::S3::S3Error& err,
std::string_view msg) {
using namespace Aws::Http;
switch (err.GetResponseCode()) {
case HttpResponseCode::NOT_FOUND:
- return Status::Error<NOT_FOUND, false>("{}: {} {} type={},
request_id={}", msg,
- err.GetExceptionName(),
err.GetMessage(),
+ return Status::Error<NOT_FOUND, false>("{}: {} {} code=NOT_FOUND,
type={}, request_id={}",
+ msg, err.GetExceptionName(),
err.GetMessage(),
err.GetErrorType(),
err.GetRequestId());
case HttpResponseCode::FORBIDDEN:
- return Status::Error<PERMISSION_DENIED, false>("{}: {} {} type={},
request_id={}", msg,
- err.GetExceptionName(),
err.GetMessage(),
- err.GetErrorType(),
err.GetRequestId());
+ return Status::Error<PERMISSION_DENIED, false>(
+ "{}: {} {} code=FORBIDDEN, type={}, request_id={}", msg,
err.GetExceptionName(),
+ err.GetMessage(), err.GetErrorType(), err.GetRequestId());
default:
return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
"{}: {} {} code={} type={}, request_id={}", msg,
err.GetExceptionName(),
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]