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 2022/06/30 13:01:56 UTC

[GitHub] [dubbo] Trydamere opened a new issue, #10246: 配置规则中服务降级示例不生效

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


[GitHub] [dubbo] Trydamere closed issue #10246: 配置规则中mock参数不生效

Posted by GitBox <gi...@apache.org>.
Trydamere closed issue #10246: 配置规则中mock参数不生效
URL: https://github.com/apache/dubbo/issues/10246


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


[GitHub] [dubbo] Trydamere closed issue #10246: 配置规则中服务降级示例不生效

Posted by GitBox <gi...@apache.org>.
Trydamere closed issue #10246: 配置规则中服务降级示例不生效
URL: https://github.com/apache/dubbo/issues/10246


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


[GitHub] [dubbo] Trydamere commented on issue #10246: 配置规则中服务降级示例不生效

Posted by GitBox <gi...@apache.org>.
Trydamere commented on issue #10246:
URL: https://github.com/apache/dubbo/issues/10246#issuecomment-1171193957

   @AlbumenJ plz take a look.


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