smalljunHw commented on issue #3918:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/3918#issuecomment-1751930846

   > 你期望一个什么样的结果了?
   > 
   > `1)不会像别的监听事件一样,listener抛异常会让启动失败` 是的, 因为java 
chassis被设计为注册失败,进程不退出,一直尝试注册,直到成功。
   > 
   > `2)会造成后续监听此事件的listener不执行` 这个怎么理解? AFTER_REGISTRY 事件一般只会触发一次。
   > 
   > 所以总的来讲,这种场景应用最好捕获异常。如果必须应用失败,可以在之前做一些前提条件检查,保证AFTER_REGISTRY的逻辑不至于失败。
   
   如果有2个listener A和B,监听AFTER_REGISTRY事件时,如果A抛了异常,B就不会执行


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

Reply via email to