chenBright opened a new issue, #1921: URL: https://github.com/apache/incubator-brpc/issues/1921
背景:一些使用到的第三方库甚至标准库,都会有抛异常的情况。目前除了thrift,其他协议都没有捕获服务回调方法抛出的异常。这样使用的时候,只能等服务因抛异常而crash后,经过排查修复后,重新上线才能解决问题,相当于需要一次试错的成本。 期望:很多时候,异常case才会触发抛异常的逻辑,不需要让服务crash。其他协议的处理方式可以和thrift一样(http协议支持持续发送,需要特殊处理),捕获异常,返回错误给上游,并打印异常信息,使用方根据异常信息排查修复问题后,升级服务即可。 -- 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]
