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/13 04:24:39 UTC

[GitHub] [dubbo] xlq20080808 opened a new issue, #10145: dubbo3.0.7指定failfast失效

xlq20080808 opened a new issue, #10145:
URL: https://github.com/apache/dubbo/issues/10145

   <!-- 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.
   
   ## Ask your question here
   **配置**
   `    @Bean
       @DubboReference(url = "${spring.application.url:}", cluster = "failfast")
       public ReferenceBean<DemoService> demoService() {
           return new ReferenceBean<>();
       }`
   
   `    @Resource
       private DemoService demoService;
   
       @GetMapping(value = "/")
       public String hello() throws Exception {
           log.info("recv a hello request");
           try {
               return demoService.sayHello();
           } catch (Exception e){
               log.error("",e);
               throw e;
           }
       }`
   
   **现象**
   指定为cluster=failfast,url中已经写入,但仍是FailoverClusterInvoker执行
   尝试使用yaml配置,仍无效
   尝试使用3.0.4,仍无效
   尝试配置为其他容错方式,仍使用FailoverClusterInvoker
   debug:
   <img width="1288" alt="image" src="https://user-images.githubusercontent.com/33999699/173279174-e18216d4-d5d2-4114-81b5-5b7ff7f2ae8d.png">
   url:
   <img width="745" alt="image" src="https://user-images.githubusercontent.com/33999699/173279305-76863deb-f4fa-49a2-b157-ddfb6725ebe1.png">


-- 
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] xlq20080808 closed issue #10145: dubbo3.0.7指定failfast失效

Posted by GitBox <gi...@apache.org>.
xlq20080808 closed issue #10145: dubbo3.0.7指定failfast失效
URL: https://github.com/apache/dubbo/issues/10145


-- 
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] xlq20080808 commented on issue #10145: dubbo3.0.7指定failfast失效

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

   使用url方式不使用注册中心,不可使用集群容错策略,走默认FailoverClusterInvoker,实现类似快速失败将retries参数修改为0


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