You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/08/24 15:36:02 UTC

[GitHub] [dubbo] plusmancn commented on issue #8470: 提供可控的 `Invoker` 链组装过程。

plusmancn commented on issue #8470:
URL: https://github.com/apache/dubbo/issues/8470#issuecomment-904750134


   > (因为 filter 总是覆盖而非追加)
   
   @JasonMing When I refer to the official docs, it says:
   > provider 和 service 同时配置的 filter 时,累加所有 filter,而不是覆盖。比如:<dubbo:provider filter="xxx,yyy"/> 和 <dubbo:service filter="aaa,bbb" />,则 xxx,yyy,aaa,bbb 均会生效。如果要覆盖,需配置:<dubbo:service filter="-xxx,-yyy,aaa,bbb" />
   
   and I have verified it by the following config,  `AFilter` was annotated by `@Activate`,  the `AFilter` didn't appear in RPC producer, but `BFilter` dit as expected. 
   ```xml
   
   <dubbo:consumer filter="-a"/> 
   <dubbo:reference filter="b"/>
   ```
   
   But I found another problem that we have no config option to control `AFilter` not appaerning in `getMetadataInfo` process.
   ```java
   metadataInfo = metadataServiceProxy
              .getMetadataInfo(ServiceInstanceMetadataUtils.getExportedServicesRevision(instance));
   ```
   


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