apache / apache/dubbo-website

上下文参数传递:发现参数错乱

Open
#2,636 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
491
Forks
809
Avg merge
1d 6h
Merged PRs (30d)
6

Description

![image](https://github.com/apache/dubbo-website/assets/43233839/144ad24e-e42c-4025-9b7c-774e630fce31)

Dubbo调用流程如图所示:
在一个 scope = "local" 的dubbo service 上下文参数传递,发现参数错乱,后续拿到的Attachment参数永远是第一次set的值;

当我@DubboReference(version = "1.0.0", validation = "true", check = false, scope = Constants.SCOPE_LOCAL)
替换成Spring注解:@Autowired 传参正常,请问一下这是一个bug吗 ?

Consumer Filter 伪代码如下:
![image](https://github.com/apache/dubbo-website/assets/43233839/5ff964ac-d160-4b4e-8d62-c2576399d816)

Provider Filter 伪代码如下:
![image](https://github.com/apache/dubbo-website/assets/43233839/40550eca-fbe2-49dc-b475-93a613a22835)

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files, tests, versions, or concrete reproduction steps are identified. Start by reproducing the local-scope Dubbo call with the Consumer and Provider Filters described, then verify whether the Attachment retains the first value and document the confirmed cause and expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
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.