apache / apache/dubbo

关于Dubbo 2.7.x Consumer无法继承Provider的配置项,是否有其它解决办法?

Open
#9,349 5 comments 0 reactions 0 assignees View on GitHub
type/discussion
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

看不少兄弟也反馈了这样的问题,在2.7.8版本后注释了合并Provider参数的代码,导致Provider配置的参数无法传递到Consumer。

dubbo/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryDirectory.java
Line 358 in 321789d
// this.overrideDirectoryUrl = this.overrideDirectoryUrl.addParametersIfAbsent(providerUrl.getParameters()); // Merge the provider side parameters

这种做法与Dubbo官方文档介绍不一致,而且对于老Dubbo用户来说,这个改变无法接受。在相关Issue里也没有给出解决办法。
请问,如果确实需要这个特性,该怎么支持呢?

Contributor guide

Open the contributing guide

Research direction

Start in dubbo/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryDirectory.java at line 358, where provider parameter merging is commented out. Compare this behavior with the official Dubbo documentation and the related issues mentioned in the report. Done means establishing whether provider parameters should reach consumers and documenting or identifying a supported resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.