Skip to content

Commit

Permalink
feat: store health check EHOSTDOWN set FAULTY
Browse files Browse the repository at this point in the history
  • Loading branch information
cyz-2023 committed Nov 15, 2024
1 parent d449feb commit fc9e74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol/network_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit fc9e74c

Please sign in to comment.