You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "gulang12 (via GitHub)" <gi...@apache.org> on 2023/06/29 09:15:59 UTC

[GitHub] [dubbo] gulang12 opened a new issue, #12623: ReferenceBean.getCallProxy()在dubbo3.1.5版本与3.0.4版本的不同??

gulang12 opened a new issue, #12623:
URL: https://github.com/apache/dubbo/issues/12623

       private Object getCallProxy() throws Exception {
           if (referenceConfig == null) {
               throw new IllegalStateException("ReferenceBean is not ready yet, please make sure to call reference interface method after dubbo is started.");
           }
           //get reference proxy
           //Subclasses should synchronize on the given Object if they perform any sort of extended singleton creation phase.
           // In particular, subclasses should not have their own mutexes involved in singleton creation, to avoid the potential for deadlocks in lazy-init situations.
           //The redundant type cast is to be compatible with earlier than spring-4.2
           synchronized (((DefaultSingletonBeanRegistry)getBeanFactory()).getSingletonMutex()) {
               return referenceConfig.get();
           }
       }
   
   在dubbo3.1.5中为啥要加 synchronized ???目的是什么,主要解决什么问题


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


Re: [I] ReferenceBean.getCallProxy()在dubbo3.1.5版本与3.0.4版本的不同?? [dubbo]

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ closed issue #12623: ReferenceBean.getCallProxy()在dubbo3.1.5版本与3.0.4版本的不同??
URL: https://github.com/apache/dubbo/issues/12623


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


Re: [I] ReferenceBean.getCallProxy()在dubbo3.1.5版本与3.0.4版本的不同?? [dubbo]

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #12623:
URL: https://github.com/apache/dubbo/issues/12623#issuecomment-1987525701

   No news is good news. Please feel free to create a new issue if you have any question.
   


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


[GitHub] [dubbo] liufeiyu1002 commented on issue #12623: ReferenceBean.getCallProxy()在dubbo3.1.5版本与3.0.4版本的不同??

Posted by "liufeiyu1002 (via GitHub)" <gi...@apache.org>.
liufeiyu1002 commented on issue #12623:
URL: https://github.com/apache/dubbo/issues/12623#issuecomment-1614246707

   FYI [11194](https://github.com/apache/dubbo/pull/11194)


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