wegod commented on issue #12376:
URL: https://github.com/apache/dubbo/issues/12376#issuecomment-1571573061

   > 
AbstractClusterInvoker中invokeWithContext执行setContext会覆盖RpcServiceContext的url为provider的
   
   
是的,但是后边就被覆盖了,AbstractClusterInvoker中invokeWithContext执行setContext会invoker的provider
 url覆盖为ConsumerContextFilter设置的url
   
   在alibaba的LoadBalance中,url会转成new 
com.alibaba.dubbo.common.URL(url),由于consumerURL是ServiceAddressURL的属性,这里转的时候consumerURL就丢失了,所以在apache的RpcContext判断consumerSide的时候就直接使用了invoker的provider
 url了


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

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


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

Reply via email to