Open ssfyn opened 1 year ago
通过看zk内容发现go的服务的dubbo.metadata-service.url-params中proto是dubbo,但java的服务是tri,不确定和这个有没有关系。
请问使用的 dubbo-go 版本是? 3.1.0 吗?
通过看zk内容发现go的服务的dubbo.metadata-service.url-params中proto是dubbo,但java的服务是tri,不确定和这个有没有关系。
请问使用的 dubbo-go 版本是? 3.1.0 吗?
是的
@ssfyn 可以给一份go侧的配置内容吗?
@ssfyn 可以给一份go侧的配置内容吗?
dubbo:
application:
name: go-example
module: example
organization: example
owner: me
environment: local
registries:
demoZK:
protocol: zookeeper
timeout: 3s
address: 127.0.0.1:2181
registry-type: all
metadata-report:
protocol: zk
address: 127.0.0.1:2181
protocols:
triple:
name: tri
port: 20000
provider:
services:
GreeterServerImpl:
protocol: tri
interface: "com.goexample.Greeter"
consumer:
references:
GreeterClientImpl:
interface: "org.apache.dubbo.samples.tri.unary.Greeter"
protocol: "tri"
已经找到了问题链路,java侧的配置也能发一下么?
已经找到了问题链路,java侧的配置也能发一下么?
配置文件是这个
dubbo:
application:
name: dubbo-springboot-demo-provider
protocol:
name: tri
port: -1
registry:
address: zookeeper://127.0.0.1:2181
java这块儿起的服务是直接使用的这个demo:
https://github.com/apache/dubbo-samples/tree/master/1-basic/dubbo-samples-triple-unary
已经找到了问题链路,java侧的配置也能发一下么?
配置文件是这个
dubbo: application: name: dubbo-springboot-demo-provider protocol: name: tri port: -1 registry: address: zookeeper://127.0.0.1:2181
java这块儿起的服务是直接使用的这个demo: https://github.com/apache/dubbo-samples/tree/master/1-basic/dubbo-samples-triple-unary
404 - page not found, is 3.2 branch ?
已经找到了问题链路,java侧的配置也能发一下么?
配置文件是这个
dubbo: application: name: dubbo-springboot-demo-provider protocol: name: tri port: -1 registry: address: zookeeper://127.0.0.1:2181
java这块儿起的服务是直接使用的这个demo: https://github.com/apache/dubbo-samples/tree/master/1-basic/dubbo-samples-triple-unary
404 - page not found, is 3.2 branch ?
应该是这个https://github.com/apache/dubbo-samples/tree/3.2/1-basic/dubbo-samples-triple-unary
reproduced success,in dubbo-go tri depens on some stub method in generated pb.go file, just like that
func (c *GreeterClientImpl) GetDubboStub(cc *triple.TripleConn) GreeterClient {
return NewGreeterClient(cc)
}
in metadata module it use low level api to invoke rpc, no pb.go file and GetDubboStub method generated https://github.com/apache/dubbo-go/blob/d204c4ef491dd22c58c4fd2e0a30e0f9d4e57715/metadata/service/local/service_proxy.go#L175-L190
in fact tri protocol not supported in metadata service rpc client
@ssfyn in java server side,set dubbo.application.metadataServiceProtocol=dubbo
to avoid this problem, we will fix it in next release
问题
dubbo.metadata-service.url-params
中proto
是dubbo
,但java的服务是tri
,不确定和这个有没有关系。错误讯息