-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug修复及功能支持 #247
base: master
Are you sure you want to change the base?
bug修复及功能支持 #247
Conversation
cyz-2023
commented
Sep 26, 2024
- sort index使用primary字段
- 添加ns和db粒度的默认机房配置、主机房配置
- 多表join支持reorder
- 支持distinct x, count(*)
- 子查询支持force index
- update语句支持保持ttl
- bug修复
src/protocol/network_server.cpp
Outdated
@@ -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() == ETIMEDOUT || cntl->ErrorCode() == EHOSTDOWN) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hostdown属于faulty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改,加了个commit
src/protocol/network_server.cpp
Outdated
} | ||
//dead实例不会太多,设置个阈值,太多了则不做处理 | ||
size_t max_dead_cnt = std::min(info_map.size() / 10 + 1, (size_t)5); | ||
if (need_cancel_addrs.size() > max_dead_cnt) { | ||
if (need_cancel_addrs.size() > max_dead_cnt && !is_logical_room_faulty) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
而且这个本身状态也没变化,区别就是是否需要cancel rpc,这个只是认为机器卡死的时候需要cancel
fc9e74c
to
8a57dda
Compare