use NetKeepAlive for px check server alive

This commit is contained in:
obdev
2023-03-20 22:04:27 +08:00
committed by ob-robot
parent 2f7011184e
commit 4b49ed92fc
7 changed files with 36 additions and 29 deletions

View File

@ -13,7 +13,7 @@
#define USING_LOG_PREFIX SQL_ENG
#include "sql/engine/px/ob_px_sqc_async_proxy.h"
#include "share/ob_server_blacklist.h"
#include "sql/engine/px/ob_px_util.h"
namespace oceanbase {
using namespace common;
@ -68,10 +68,8 @@ int ObPxSqcAsyncProxy::launch_all_rpc_request() {
args.enable_serialize_cache();
}
ARRAY_FOREACH_X(sqcs_, idx, count, OB_SUCC(ret)) {
if (OB_UNLIKELY(share::ObServerBlacklist::get_instance().is_in_blacklist(
share::ObCascadMember(sqcs_.at(idx)->get_exec_addr(), cluster_id),
true /* add_server */,
session_->get_process_query_time()))) {
if (OB_UNLIKELY(ObPxCheckAlive::is_in_blacklist(sqcs_.at(idx)->get_exec_addr(),
session_->get_process_query_time()))) {
ret = OB_RPC_CONNECT_ERROR;
LOG_WARN("peer no in communication, maybe crashed", K(ret),
KPC(sqcs_.at(idx)), K(cluster_id), K(session_->get_process_query_time()));