apache / apache/dubbo

dubbo3.1.0配置接口级超时时间未生效只有全局的超时时间生效了

Open
#11,185 3 comments 0 reactions 0 assignees View on GitHub
help wanted type/bug
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

- [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.

### Environment

* Dubbo version: 3.1.0
* Operating System version: Linux
* Java version: 1.8

### Steps to reproduce this issue

1. 配置消费者全局配置 例如:dubbo.consumer.timeout=5000
2. 配置消费者接口级超时时间例如 dubbo.reference.org.apache.dubbo.samples.api.DemoService.timeout=6000

Pls. provide [GitHub address] to reproduce this issue.

### Expected Behavior

应该配置优先级中接口级高于全局配置

### Actual Behavior

实际上接口级配置并未生效只有全局超时时间生效了最终接口的超时时间在dubbo控制台看到的是5000毫秒

If there is an exception, please attach the exception trace:

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue using Dubbo 3.1.0 on Linux with Java 8, setting dubbo.consumer.timeout=5000 and the DemoService interface timeout to 6000. Compare the effective timeout shown in the Dubbo console with the expected interface-over-global priority; done means the interface-level value is applied.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.