You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/06/24 02:51:46 UTC

[GitHub] [servicecomb-java-chassis] wujimin commented on issue #2430: CSE从2.0.2升级到2.1.5,产品基于CSE的EventBus机制显示的接口日志打印问题。

wujimin commented on issue #2430:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2430#issuecomment-867294031


   * 本问题不相关
     * 建议
       * event不可能为null
       * invocation不可能为null
       * invocation.getInvocationStageTrace不可能为null
       * response不可能为null
       * 注册事件监听,可以让RegisterEvent实现BootListener接口,override onBeforeHandler方法,再`event.getScbEngine().getEventBus().register(this);`即可
         避免产生一个RegisterEvent的bean实例,又额外new了一个实例,new出来的实例还没办法使用spring注入
     * 问题
       * 方法还需要标记上`@AllowConcurrentEvents`,否则consume方法是不能并发的,会形成性能瓶颈
   * 本问题相关
     eventBus机制没有变化  
     有没有可能是打印代码有异常,建议在方法入口打个断点看看是什么情况


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

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