Skip to content

reference的timeout配置不生效 #11031

@QingJuBaiTang

Description

@QingJuBaiTang

Environment

  • Dubbo version: 3.1.0
  • Operating System version: MacOS 13.0
  • Java version: 1.8

Steps to reproduce this issue

  1. 写一个简单的项目(非spring项目)
  2. main方法启动一个provider,对外暴露一个简单的api,比如DemoService#sayHi(),用sleep模拟一个耗时3秒的调用
  3. main方法再启动一个consumer。创建两个reference去调用2中的api,第一个reference设置timeout为1秒,第二个reference设置超时为5秒

预期结果:

  • 第一个调用超时,第二个调用正常

实际结果:

  • 两个调用均超时了

这边提供一个用于重现bug的repo,希望能帮你们重现问题 https://github.com/QingJuBaiTang/dubbo-learn

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugBugs to being fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions