-
Notifications
You must be signed in to change notification settings - Fork 26.3k
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
只在提供者端设置retries=10,值10不会传递给消费者端,最终for循环的len值是3。 #8426
Comments
@haoyann pls see it. |
Dubno3.0.1
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: 赵延 ***@***.***>
发送时间: 2021年8月6日 10:30
收件人: apache/dubbo ***@***.***>
抄送: startjava ***@***.***>, Author ***@***.***>
主题: 回复:[apache/dubbo] 只在提供者端设置retries=10,值10不会传递给消费者端,最终for循环的len值是3。 (#8426)
@haoyann pls see it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
@horizonzy @startjava I will try. |
retries can't be delivered, if each provider have their own retries , which one should be choosed? It should be determined by consumer instead of provider |
It should be delivered, consumer side pick one provide node, it can get the provider node's retry times. |
@haoyann 代码为什么要注释掉呢??如果这样,是不是只支持在客户端配置了,不支持在服务端配置了? |
at least it can't be deliverd in FailoverClusterInvoker,because the retries were caculated before the Invoker selected。As for others it's OK. |
要是这么说的话,官方文档有错误啊:
https://dubbo.apache.org/zh/docs/advanced/fault-tolerent-strategy/
Failover Cluster
失败自动切换,当出现失败,重试其它服务器。通常用于读操作,但重试会带来更长延迟。可通过 retries="2" 来设置重试次数(不含第一次)。
重试次数配置如下:
<dubbo:service retries="2" />
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2021年8月10日(星期二) 下午2:20
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [apache/dubbo] 只在提供者端设置retries=10,值10不会传递给消费者端,最终for循环的len值是3。 (#8426)
retries can't be delivered, if each provider have their own retries , which one should be choosed? It should be determined by consumer instead of provider
It should be delivered, consumer side pick one provide node, it can get the provider node's retry times.
at least it can't be deliverd in FailoverClusterInvoker,because the retries were caculated before the Invoker selected。As for others it's OK.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
文档是不是要修改一下,,不然这是误导。 |
@haoyann 大佬,这个问题解决了吗? |
是啊,文档中竟然明确提到建议在provider端配置重试次数 |
Resolved in #9147 |
@DubboService(retries = 10)
是否是bug?
但在消费者端使用@DubboReference(retries = 5)是正确的,一共循环6次。
The text was updated successfully, but these errors were encountered: