carryxyh commented on issue #2539: When adding @Referenc in Multicast registry, 
deadlock happened.
URL: 
https://github.com/apache/incubator-dubbo/issues/2539#issuecomment-423105964
 
 
   The log is already obvious.
   When the main thread initializes the spring container, it locks 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry#singletonObjects
 and then tries to lock a RegistryDirectory when executing 
MulticastRegistry.doSubscribe.
   
   The DubboMulticastRegistryReceiver thread locks the RegistryDirectory when 
it is in MulticastRegistry.receive. When it gets the bean, it tries to lock 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry#singletonObjects
 and deadlock.
   
   So it seems that we need to synchronize the execution of 
MulticastRegistry.this.receive in the MulticastRegistry to eliminate deadlock.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to