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

PHP通过go agent调用java服务BUG #33

Open
byjamesCN opened this issue Jun 6, 2019 · 1 comment
Open

PHP通过go agent调用java服务BUG #33

byjamesCN opened this issue Jun 6, 2019 · 1 comment

Comments

@byjamesCN
Copy link

go agent 需要通过版本等值组成的键查找服务是否存在:
version := "0.1"
if request.GetAttachment(mpro.MVersion) != "" {
version = request.GetAttachment(mpro.MVersion)
}
ck := getClusterKey(request.GetAttachment(mpro.MGroup), version, request.GetAttachment(mpro.MProxyProtocol), request.GetAttachment(mpro.MPath))
但是,我跟踪了下,通过php的doCall调用方法时,版本号根本就没有到agent这边来,是我用法错误吗?

@byjamesCN
Copy link
Author

go agent日志输出:
motanserver.go:155] cluster not found. cluster: default_0.1_motan2_com.
其中的0.1是错误的
PHP端设置$url->setVersion('1.0');无效

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

1 participant