dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

When refer the same service with more than one @References(with different configs) on consumer side, only one take effect.

Open zzl1521 opened this issue 8 years ago • 6 comments

消费端使用注解方式引用服务端接口,如果一个服务中存在多处引用同一个接口但配置不同,比如重试次数不一样,消费端服务初始化时只会生效第一个加载的引用,而后的其他配置也就不生效,会导致服务失败重试等问题

zzl1521 avatar Feb 01 '18 09:02 zzl1521

AnnotationBean private Object refer(Reference reference, Class referenceClass)

zzl1521 avatar Feb 01 '18 09:02 zzl1521

I think this problem needs to be fixed: com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor#generateReferenceBeanCacheKey

roc-cn avatar Feb 07 '18 12:02 roc-cn

mark.

haiyang1985 avatar Mar 14 '18 04:03 haiyang1985

Will be fixed on Dubbo 2.5.11

mercyblitz avatar Mar 16 '18 18:03 mercyblitz

Has this problem fixed ?

luyuanwan avatar Jun 29 '18 05:06 luyuanwan

this issue is no longer valid, has been fixed.

beiwei30 avatar Feb 19 '19 08:02 beiwei30