serverglen opened a new pull request #1502:
URL: https://github.com/apache/incubator-brpc/pull/1502
loadbalancer:c_murmurhash
当某个下游实例由于某些原因被SetFailed之后,后台会启动启动一个健康检查线程定时(间隔由参数-health_check_interval控制)检查被屏蔽的实例是否恢复正常。对于hash类型的loadbalancer,SelectServer(const
SelectIn& in, SelectOut* out)函数中的in.has_request_code必须是true,否则会输出错误日志并返回NULL;
`
if (!in.has_request_code) {
LOG(ERROR) << "Controller.set_request_code() is required";
return EINVAL;
`
如果下游实例只有几个,在某些情况下,有可能这些实例都被SetFailed了,从而导致后续的所有的请求都会失败。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]