Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed May 15, 2024
1 parent 5e8477e commit d5a005d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions be/src/util/thrift_rpc_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ Status ThriftRpcHelper::rpc(const std::string& ip, const int32_t port,
callback(client);
} catch (apache::thrift::transport::TTransportException& e) {
std::cerr << "thrift error, reason=" << e.what();
#ifdef ADDRESS_SANITIZER
return Status::RpcError("failed to call frontend service, FE address={}:{}, reason: {}", ip,
port, e.what());;
#else
LOG(WARNING) << "retrying call frontend service after "
<< config::thrift_client_retry_interval_ms << " ms, address=" << address
<< ", reason=" << e.what();
Expand All @@ -86,6 +90,7 @@ Status ThriftRpcHelper::rpc(const std::string& ip, const int32_t port,
return status;
}
callback(client);
#endif
}
} catch (apache::thrift::TException& e) {
LOG(WARNING) << "call frontend service failed, address=" << address
Expand Down

0 comments on commit d5a005d

Please sign in to comment.