smalljunHw opened a new issue, #3918:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3918

   
如题,我们碰到有些业务需要在启动过程中需要调用别的CSE微服务来做一些初始化的工作,这个时候需要监听AFTER_REGISTRY事件,但是自定义的BootListener在监听AFTER_REGISTRY事件如果抛异常,会有2个问题
   1)不会像别的监听事件一样,listener抛异常会让启动失败;
   2)会造成后续监听此事件的listener不执行
   最后,仅是打一行日志。
   从实现看,是因为微服务实例注册事件是在Service Center线程执行的,而不是在main线程,故listener抛异常不会导致启动失败。


-- 
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: commits-unsubscr...@servicecomb.apache.org.apache.org

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

Reply via email to