funky-eyes commented on issue #7047:
URL: 
https://github.com/apache/incubator-seata/issues/7047#issuecomment-2568807060

   这个问题我认为有2个原因
   
1.parseAnnotation中应该对方法不存在进行跳过,不应该直接抛异常,因为其中可能存在代理类,并且其中还存在第二个问题,当实现类与接口并存tcc注解时,会出现问题,所以这里的逻辑我认为最好改为子类优先,父类注解的值应该被子类替换(这也是官网里为什么建议大家放到实现类中,而不是接口上的原因),以及这个遍历实际上只需要运行一次,只要initCommonFenceCleanTask执行完成后,就不应该再次进行,即`businessAction.useTCCFence()`
 为true时,外层的for也是没意义的,而且会影响启动应用的耗时
   2.GlobalTransactionScanner的优先级低于aop,导致aop先行代理后,得到了一个代理bean,而不是真正的targetbean
   我认为修复该问题,可以从第一点下手,也是你所提到的问题,你可以提交一个pr来帮助社区修复该问题吗?


-- 
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: notifications-unsubscr...@seata.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to