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

[GitHub] [dubbo] AlbumenJ commented on issue #12376: RpcServiceContext.isConsumerSide return false in consumer side

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

   > > 你试试3.2版本我用这个方法判断是可以的
   > 
   > 3.2.1 也有同样的问题 isConsumerSide的判断逻辑是在B服务的Filter里,虽然是在A consumer机器上判断的Filter,但还是被认为是provider
   > 
   > 大概看了下url和consumerUrl的逻辑,既然拆成了两个url,感觉看着是url只表示provider的url了,为啥只用url的side来判断是否是consumer?
   > 
   > 可以不可以直接判断是否有consumerUrl之类的逻辑来判断isConsumerSide
   
   org/apache/dubbo/rpc/cluster/filter/support/ConsumerContextFilter.java:68 这里应该是会填充 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-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