Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not stop retry with retries=0 #1463

Closed
SuperstarSage opened this issue Mar 13, 2018 · 3 comments
Closed

Can not stop retry with retries=0 #1463

SuperstarSage opened this issue Mar 13, 2018 · 3 comments

Comments

@SuperstarSage
Copy link

qq 20180313184422
我这样配置了之后,为什么还会有失败重试?

@sofay
Copy link

sofay commented Mar 15, 2018

看源码好像只有cluster为failover这个参数才有用

@zonghaishang
Copy link
Member

zonghaishang commented Mar 19, 2018

@SuperstarSage

if you use failfast cluster, retries does't work.
if you use failover cluser, the minimum number of retries is "retries + 1 ".

refer from : com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker#doInvoke

int len = getUrl().getMethodParameter(invocation.getMethodName(), Constants.RETRIES_KEY, Constants.DEFAULT_RETRIES) + 1;
if (len <= 0) {
    len = 1;
}

@chickenlj chickenlj changed the title 设置了retries="0"还会失败重试 Can not stop retry with retries=0 Mar 20, 2018
@chickenlj
Copy link
Contributor

Hi,

Please consider using English, Dubbo is a global community, and all the issues may be viewed and discussed by people all over the world.

Please send mail to [email protected] to discuss questions like this. We'd like github issues to track bugs, features or at least high suspicious bugs. We guarantee that the questions send to the mailing list can get a quicker reply.

How to send and subscrite to [email protected]: #1393

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants