legionxiong commented on issue #3172:
URL: https://github.com/apache/brpc/issues/3172#issuecomment-3685599071

   > > 是不是可以加一个原子变量,记录一下同时存在的HC个数?
   > 
   > 所以,得记录一些状态或者日志,复现的时候才能进一步分析吧。
   
   这个问题最后定位出来是应用层自身的问题, OnNewMessages 返回时析构 last_msg 在 ProcessInputMessage 
中会原地执行用户 done->Run()。 我们应用层代码走到了重试发 rpc 的逻辑,导致  OnNewMessages 没有释放掉 broken 
socket 的引用计数。 重试的 rpc address socket 失败又再次重试, 重试的次数有点大,与 WaitAndSock 
循环依赖,导致整个业务流程卡住了。


-- 
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]

Reply via email to