Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consumer 端 RpcContext.getServiceContext().getRemoteAddressString() 返回 null #12631

Closed
1 task done
WangXiaoJin opened this issue Jun 30, 2023 · 1 comment
Closed
1 task done
Labels
type/bug Bugs to being fixed

Comments

@WangXiaoJin
Copy link

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

Environment

  • Dubbo version: 3.2.2
  • Operating System version: Win10
  • Java version: 1.8

Steps to reproduce this issue

consumer端的Filter中执行 RpcContext.getServiceContext().getRemoteAddressString() 返回null,2.5.7版本中是可以通过
com.alibaba.dubbo.rpc.RpcContext#getRemoteAddressString() 获取 provider 地址的。在3.2.2版本中设置RemoteAddress逻辑比较滞后

Expected Behavior

期望在consumer端可以通过RpcContext.getServiceContext().getRemoteAddressString()RpcContext.getServiceContext().getRemoteApplicationName() 获取 对端服务信息

Actual Behavior

实际现象是consumer端获取信息返回null,在provider端可以成功获取

@WangXiaoJin WangXiaoJin added the type/bug Bugs to being fixed label Jun 30, 2023
@xixingya
Copy link
Contributor

hello, RpcContext.getServiceContext().getRemoteAddressString()是可以正常获取值的,RpcContext.getServiceContext().getRemoteApplicationName()这个确实拿不到

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bugs to being fixed
Projects
None yet
Development

No branches or pull requests

3 participants