Skip to content

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

@WangXiaoJin

Description

@WangXiaoJin
  • 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端可以成功获取

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugBugs to being fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions