Skip to content

Potential RpcServiceContext contamination in Dubbo 3 #9666

@wu-sheng

Description

@wu-sheng
  • I have searched the issues of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 3.x
  • Operating System version: xxx
  • Java version: xxx

Steps to reproduce this issue

The whole discussion context could be found in this SkyWalking's bug report, apache/skywalking#8525
According to the discussion, when a service acts as a provider and consumer at the same time, serviceContext.isConsumerSide(); always returns true even it is already in the customer calling context.

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

Expected Behavior

serviceContext.isConsumerSide(); works as expected, even it is in a provider->internal logic->consumer in-process scenario.

Actual Behavior

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

Just put your stack trace here!

Metadata

Metadata

Labels

type/bugBugs to being fixed

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions