Skip to content

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

Closed

Description

@zzl1521

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

Activity

  1. zzl1521 commented on Feb 1, 2018

    @zzl1521
    Author

    AnnotationBean private Object refer(Reference reference, Class<?> referenceClass)

  2. changed the title [-]消费端使用注解方式引用服务端接口,同一个接口多个类引用,引用的注解配置各不一样,加载存在问题[/-] [+]When refer the same service with more than one @References(with different configs) on consumer side, only one take effect.[/+] on Feb 5, 2018
  3. added this to the 2.5.10 milestone on Feb 5, 2018
  4. roc-cn commented on Feb 7, 2018

    @roc-cn

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

  5. modified the milestones: 2.5.10, 2.6.1 on Mar 12, 2018
  6. haiyang1985 commented on Mar 14, 2018

    @haiyang1985
    Member

    mark.

  7. modified the milestones: 2.6.1, 2.6.2 on Mar 16, 2018
  8. modified the milestones: 2.6.2, 2.5.11 on Mar 16, 2018
  9. mercyblitz commented on Mar 16, 2018

    @mercyblitz
    Contributor

    Will be fixed on Dubbo 2.5.11

  10. added a commit that references this issue on Mar 30, 2018
  11. luyuanwan commented on Jun 29, 2018

    @luyuanwan
    Contributor

    Has this problem fixed ?

  12. modified the milestones: 2.5.11, 2.6.6 on Jan 15, 2019
  13. beiwei30 commented on Feb 19, 2019

    @beiwei30
    Member

    this issue is no longer valid, has been fixed.

  14. added 2 commits that reference this issue on Mar 14, 2019
  15. modified the milestones: 2.6.6, 2.7.1 on Mar 15, 2019
  16. added a commit that references this issue on Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions