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

   > > Metadata 这个服务目前是已知的不加载 Filter 的,建议在你们的 Filter 中也排除掉这个服务
   > 
   > 这个是从哪个版本开始调整的?`dubbo-3.1.1`使用中没出现这个。
   > 
   > 
原来如此,这样会有问题。因为业务应用都是通过`dubbo.provider.filter=xxx`统一配置自定义Filter,Filter中会使用`RpcContext.getServiceContext().isConsumerSide()`,而请求getMetadataInfo会走到这些Filter。
   > 
   > 既然Metadata这个服务不加载Filter,为何其服务请求还要走Filter呢,建议两边保持一致语义。
   
   1. 3.2.4
   2. 因为使用的是 `serviceConfig.setFilter("-default")`, 只能保证 Dubbo 内部的 Filter 被排除
   3. 如果全部的 Filter 包括用户侧的,如果有的用户期望注入一些自定义的东西就没办法工作了


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