Skip to content

dubbo3.0.7指定failfast失效 #10145

@xlq20080808

Description

@xlq20080808
  • I have searched the 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;
        }
    }

现象
debug:
image
url:
image
指定为cluster=failfast,url中已经写入,但仍是FailoverClusterInvoker执行
尝试使用yaml配置,仍无效
尝试使用3.0.4,仍无效
尝试配置为其他容错方式,仍使用FailoverClusterInvoker
尝试使用2.6.6版本,相同配置无此问题,debug跟踪到使用为FailfastClusterInvoker执行

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions