You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/03/03 00:52:26 UTC
[doris] branch branch-1.2-lts updated: [branch-1.2](status) add backend ip in status error msg (#17370)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
new 665f20bfdd [branch-1.2](status) add backend ip in status error msg (#17370)
665f20bfdd is described below
commit 665f20bfddc318f103a8b79d7b53d76c0d61b50d
Author: Mingyu Chen <mo...@163.com>
AuthorDate: Fri Mar 3 08:52:20 2023 +0800
[branch-1.2](status) add backend ip in status error msg (#17370)
Return msg like:
`ERROR 1105 (HY000): errCode = 2, detailMessage = (172.21.0.101)failed to init HDFSCommonBuilder, please check check be/conf/hdfs-site.xml`
So that we can know where the error comes from.
Only for branch-1.2-lts, master has done this
---
be/src/common/status.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/common/status.cpp b/be/src/common/status.cpp
index f066fe23c3..59d8c70adb 100644
--- a/be/src/common/status.cpp
+++ b/be/src/common/status.cpp
@@ -100,7 +100,7 @@ void Status::to_thrift(TStatus* s) const {
s->status_code = TStatusCode::OK;
} else {
s->status_code = code();
- s->error_msgs.push_back(_err_msg);
+ s->error_msgs.push_back(fmt::format("({}) {}", _be_ip, _err_msg));
s->__isset.error_msgs = true;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org