You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/11/28 08:46:12 UTC

[GitHub] [dubbo] IncrementalRefinement commented on issue #11027: Fix ConcurrentModificationException in application DeployListener

IncrementalRefinement commented on issue #11027:
URL: https://github.com/apache/dubbo/issues/11027#issuecomment-1328726693

   I think the main issue of https://github.com/apache/dubbo/issues/11002 is that the concurrent access of the Deployer is happed both within the Spring framework and the user code. In other words, the IOC container hasn't prepared the bean yet but the user code tries to access the bean already. This way of access the bean violates the principal is against the principal of IOC. So I don't think we should consider to fix this issue in Dubbo.
   
   If we really want to fix this problem, maybe we can make the DefaultModuleDeployer implements ApplicationListener interface and add the Anonymous DeployListenerAdapter to the AbstractDeployer#listeners in its constructor?(I personally don't recommend that)


-- 
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-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org