dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

Can not accquire remote.application from url of invoker

Open justforstudy-A opened this issue 2 years ago • 3 comments

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 3.1.0
  • Operating System version: windows
  • Java version: 11

Steps to reproduce this issue

  1. Started the application A、B、C
  2. Then debug the method MonitorFilter#invoke of application B for remote.application of invoker

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

Expected Behavior

Actual Behavior

I expected the value of remote.application is C, but it is null actually. Although I get it from attachments, but value of it is B which is wrong.

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

Just put your stack trace here!

justforstudy-A avatar Sep 09 '22 07:09 justforstudy-A

MonitorFilter is a provider filter, which can only obtain application A's information in application B.

AlbumenJ avatar Sep 09 '22 13:09 AlbumenJ

MonitorFilter is a provider filter, which can only obtain application A's information in application B.

Thanks for reply, but MonitorFilter is both provider and consumer filter at 2.7.x, can I ask the reason why change it only for provider?

justforstudy-A avatar Sep 19 '22 01:09 justforstudy-A

MonitorFilter in consumer side for 3.x is org.apache.dubbo.monitor.support.MonitorClusterFilter

AlbumenJ avatar Sep 19 '22 06:09 AlbumenJ