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 272d58a4bb9 [enhancement](rpc) should print fe address in error msg
during thrift rpc call (#33381)
272d58a4bb9 is described below
commit 272d58a4bb90e98a1ade060fb8f9f4ce0631df60
Author: yiguolei <[email protected]>
AuthorDate: Mon Apr 8 23:05:56 2024 +0800
[enhancement](rpc) should print fe address in error msg during thrift rpc
call (#33381)
Co-authored-by: yiguolei <[email protected]>
---
be/src/util/thrift_rpc_helper.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/be/src/util/thrift_rpc_helper.cpp
b/be/src/util/thrift_rpc_helper.cpp
index 285c1a689ab..25d78129387 100644
--- a/be/src/util/thrift_rpc_helper.cpp
+++ b/be/src/util/thrift_rpc_helper.cpp
@@ -94,7 +94,8 @@ Status ThriftRpcHelper::rpc(const std::string& ip, const
int32_t port,
std::chrono::milliseconds(config::thrift_client_retry_interval_ms * 2));
// just reopen to disable this connection
static_cast<void>(client.reopen(timeout_ms));
- return Status::RpcError("failed to call frontend service, reason: {}",
e.what());
+ return Status::RpcError("failed to call frontend service, FE
address={}:{}, reason: {}", ip,
+ port, e.what());
}
return Status::OK();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]