You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dubbo.apache.org by Ian Luo <ia...@gmail.com> on 2018/08/01 09:59:27 UTC

Re: @reference的retries属性咨询

Hi Stoneapple,

First of all, pls. try to use English to communicate with the whole
community, or consider bilingual descriptions.

For this particular question, yes, I agree this is a bug. The default value
for reties in @Reference should not be 0, instead, it should be consistent
with Constants#DEFAULT_RETRIES. I have filed one issue [1] to track it.

Thanks,
-Ian.

1. https://github.com/apache/incubator-dubbo/issues/2162

On Wed, Aug 1, 2018 at 2:41 PM stoneapple1122 <st...@163.com>
wrote:

>
> 你好,dubbo的注解中@reference设置为0为什么不生效,具体的场景是提供方如果设置了retries为1,但是消费方设置为0,这时候最终还是1,跟踪代码后发现组装reference对象的时候,如果属性值和默认值是一样的,这个属性相当于没有设置
> 请问这个设计的初衷的是什么?我提到的问题应该怎么解决呢?这是个bug么?
>
>
>
>
>
>