Trydamere opened a new issue, #10246: URL: https://github.com/apache/dubbo/issues/10246
<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy --> - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate. ### Environment * Dubbo version: 3.0 * Operating System version: win10 * Java version: 1.8 ### Steps to reproduce this issue 1. run `BasicProvider` on dubbo-samples-servicelevel-override 2. config rule on dubbo-admin ``` configVersion: v2.7 scope: service key: org.apache.dubbo.samples.governance.api.DemoService enabled: true configs: - addresses: [0.0.0.0] side: consumer parameters: force: return null ``` 4. config rule did not work 通过跟踪源码,发现 MockClusterInvoker的invoke方法,调用getUrl取得是原始url,此时url没有mock参数走no mock流程,之后DubboInvoker的doInvoke方法,调用getUrl取得是override的url,这时mock参数无法生效,应该在MockClusterInvoker判断no mock时将url进行override ### Expected Behavior <!-- What do you expect from the above steps?--> The `sayHello` returned null. ### Actual Behavior <!-- What actually happens? --> The `sayHello` called the provider. If there is an exception, please attach the exception trace: ``` Just put your stack trace here! ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
