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

dubbo-go client, dubbo-Java server, server can't get "remote.application" key attachment #2752

Open
zhangcunli opened this issue Nov 29, 2024 · 1 comment

Comments

@zhangcunli
Copy link

Environment

  • Server: Dubbo-Java, v3.3.0
  • Client: Dubbo-go, v3.2.0-rc2
  • Protocol: tri
  • Registry: zookeeper

Issue description

Server can't get "remote.application" key from attachment.

Logs

1.client, dubbo-go v3.2.0-rc2

		atm := make(map[string]interface{})
		atm["key1"] = "value1"
		atm["remote.application"] = "appname"
		atm["remote.application2"] = "appname"
		ctx1 := context.WithValue(context.Background(), v3constant.AttachmentKey, atm)

2.server:

        Map<String, Object> serverAttachments = RpcContext.getServerAttachment().getObjectAttachments();
        System.out.println("ContextService serverAttachments:" + JSON.toJSONString(serverAttachments));
  1. server print:
{
    "key1": "value1",
    "retries": "",
    "remote.application2": "appname"
}
"remote.application" key is null
@AlexStocks
Copy link
Contributor

zhangcunli 反馈:如果把 “remote.application” 发送到 dubbo 端,这个 attachment 就丢失了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants