From fc9e74c5b3da033cffb9da6b7815a71c040af6ea Mon Sep 17 00:00:00 2001 From: "yuzhong.chen" Date: Fri, 15 Nov 2024 15:15:32 +0800 Subject: [PATCH] feat: store health check EHOSTDOWN set FAULTY --- src/protocol/network_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/network_server.cpp b/src/protocol/network_server.cpp index 7a2f51c4..55c5be0f 100644 --- a/src/protocol/network_server.cpp +++ b/src/protocol/network_server.cpp @@ -834,7 +834,7 @@ static void on_health_check_done(pb::StoreRes* response, brpc::Controller* cntl, pb::Status new_status = pb::NORMAL; if (cntl->Failed()) { if (cntl->ErrorCode() == brpc::ERPCTIMEDOUT || - cntl->ErrorCode() == ETIMEDOUT || cntl->ErrorCode() == EHOSTDOWN) { + cntl->ErrorCode() == ETIMEDOUT) { new_status = pb::DEAD; DB_WARNING("addr:%s is dead(hang), need rpc cancel, errcode:%d, error:%s", addr.c_str(), cntl->ErrorCode(), cntl->ErrorText().c_str());