weibocom / motan-php

83 stars 30 forks source link

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

Open byjamesCN opened 5 years ago

byjamesCN commented 5 years ago

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 commented 5 years ago

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