You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/01/26 11:01:31 UTC

[GitHub] [incubator-brpc] hcoona commented on issue #1684: LoadBalancerWithNaming::Init LOG(FATAL) prevent return -1

hcoona commented on issue #1684:
URL: https://github.com/apache/incubator-brpc/issues/1684#issuecomment-1022090848


   @cdjingit 我补充一下背景。这个问题是这样的,本地的 SD 配置有错误,或者别的什么原因,此时拿到的 server 列表是空的。我们希望能够感知到这一问题,做一些清理再退出。目前的实现有这样 2 种可能:
   
   1. 直接 `LOG(FATAL)` core 掉,这个不太好,我们还想做点事情
   2. 设置 `log_succeed_without_server` 忽略掉这个错误,这个也不好,我们的请求都会卡住,我们希望能够识别出这个问题并进行一些处理


-- 
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: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org