You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2023/01/06 13:12:32 UTC
[GitHub] [dubbo-go] zhaoyunxing92 opened a new issue, #2178: 不支持 version+group 调用
zhaoyunxing92 opened a new issue, #2178:
URL: https://github.com/apache/dubbo-go/issues/2178
<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!
-->
**What happened**:
dubbo-go v3.0.4-rc1 ,给reference指定了version和group,在启动时正常初始化并找到服务(Java应用提供者有相应version和group),但调用它的方法报:Service not found。
**What you expected to happen**:
**How to reproduce it (as minimally and precisely as possible)**:
**Anything else we need to know?**:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo-go] ZLBer commented on issue #2178: 不支持 version+group 调用
Posted by GitBox <gi...@apache.org>.
ZLBer commented on issue #2178:
URL: https://github.com/apache/dubbo-go/issues/2178#issuecomment-1385034237
@CodingAdai hi,我这边跑了dubbo-go-samples里的一个例子,发现是可以用group+version进行调用的,具体地址在:https://github.com/apache/dubbo-go-samples/tree/master/rpc/dubbo
java服务端的配置:
<img width="1268" alt="image" src="https://user-images.githubusercontent.com/20033804/212850144-ba312d7f-4c60-4e8b-929c-7231afd7f660.png">
golang客户端的配置:
<img width="572" alt="image" src="https://user-images.githubusercontent.com/20033804/212850343-b24861e5-bbc8-440c-9337-e09e97c75f94.png">
指定version可以调用到不同的函数。所以你调用失败应该是哪里的配置有问题,可以对比下你的demo和这个例子,后面我抽空再看下你上面的demo。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo-go] AlexStocks commented on issue #2178: 不支持 version+group 调用
Posted by "AlexStocks (via GitHub)" <gi...@apache.org>.
AlexStocks commented on issue #2178:
URL: https://github.com/apache/dubbo-go/issues/2178#issuecomment-1420017613
> 我这边确认了,dubbo协议下与Java互通没有该问题, 但在triple(dubbo3)协议下, 因dubbo go consumer在调用时version和group参数设置不正确,造成 provider 返回 service not found 报错。我这边来修复它。
good news. thank you. please go on.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo-go] AlexStocks closed issue #2178: 不支持 version+group 调用
Posted by "AlexStocks (via GitHub)" <gi...@apache.org>.
AlexStocks closed issue #2178: 不支持 version+group 调用
URL: https://github.com/apache/dubbo-go/issues/2178
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo-go] CodingAdai commented on issue #2178: 不支持 version+group 调用
Posted by GitBox <gi...@apache.org>.
CodingAdai commented on issue #2178:
URL: https://github.com/apache/dubbo-go/issues/2178#issuecomment-1383778109
补充下这个问题:
代码demo:https://github.com/CodingAdai/java-go-dubbo.git (Go consumer call Java provider on triple)
加version之后,Java提供者收到请求后,会返回service not found,grpc status =13,debug level 关键日志如下:
`
2023-01-16T16:23:41.357+08:00 DEBUG 19404 --- [erverWorker-7-2] H2_SERVER : [id: 0x7b7f104f, L:/192.168.10.56:20990 - R:/192.168.10.56:51256] INBOUND HEADERS: streamId=1 headers=DefaultHttp2Headers[:method: POST, :scheme: http, :path: /com.example.springboot3dubbo3.Greeter/Greet, :authority: 192.168.10.56:20990, content-type: application/grpc, user-agent: grpc-go/1.43.0-dev, te: trailers, grpc-timeout: 3000000u, async: false, environment: dev, interface: com.example.springboot3dubbo3.Greeter, version: 1.0] padding=0 endStream=false
2023-01-16T16:23:41.357+08:00 DEBUG 19404 --- [erverWorker-7-2] H2_SERVER : [id: 0x7b7f104f, L:/192.168.10.56:20990 - R:/192.168.10.56:51256] INBOUND DATA: streamId=1 padding=0 endStream=true length=15 bytes=000000000a0a086c617572656e6365
2023-01-16T16:23:41.358+08:00 DEBUG 19404 --- [erverWorker-7-2] H2_SERVER : [id: 0x7b7f104f, L:/192.168.10.56:20990 - R:/192.168.10.56:51256] OUTBOUND HEADERS: streamId=1 headers=DefaultHttp2Headers[:status: 200, content-type: application/grpc+proto, grpc-status: 12, grpc-message: Service%20not%20found%3Acom.example.springboot3dubbo3.Greeter] padding=0 endStream=true
`
不加versionde话,日志如下:
`
2023-01-16T17:54:01.037+08:00 DEBUG 23964 --- [erverWorker-7-1] H2_SERVER : [id: 0x8c13aa29, L:/192.168.10.56:20990 - R:/192.168.10.56:51474] INBOUND HEADERS: streamId=1 headers=DefaultHttp2Headers[:method: POST, :scheme: http, :path: /com.example.springboot3dubbo3.Greeter/Greet, :authority: 192.168.10.56:20990, content-type: application/grpc, user-agent: grpc-go/1.43.0-dev, te: trailers, grpc-timeout: 2882118u, async: false, environment: dev, interface: com.example.springboot3dubbo3.Greeter] padding=0 endStream=false
2023-01-16T17:54:01.045+08:00 DEBUG 23964 --- [erverWorker-7-1] H2_SERVER : [id: 0x8c13aa29, L:/192.168.10.56:20990 - R:/192.168.10.56:51474] INBOUND DATA: streamId=1 padding=0 endStream=true length=15 bytes=000000000a0a086c617572656e6365
2023-01-16T17:54:01.077+08:00 DEBUG 23964 --- [erverWorker-7-1] H2_SERVER : [id: 0x8c13aa29, L:/192.168.10.56:20990 - R:/192.168.10.56:51474] OUTBOUND HEADERS: streamId=1 headers=DefaultHttp2Headers[:status: 200, content-type: application/grpc+proto, accept-encoding: gzip,snappy] padding=0 endStream=false
2023-01-16T17:54:01.080+08:00 DEBUG 23964 --- [erverWorker-7-1] H2_SERVER : [id: 0x8c13aa29, L:/192.168.10.56:20990 - R:/192.168.10.56:51474] OUTBOUND DATA: streamId=1 padding=0 endStream=false length=22 bytes=00000000110a0f48656c6c6f2c6c617572656e636521
2023-01-16T17:54:01.082+08:00 DEBUG 23964 --- [erverWorker-7-1] H2_SERVER : [id: 0x8c13aa29, L:/192.168.10.56:20990 - R:/192.168.10.56:51474] OUTBOUND HEADERS: streamId=1 headers=DefaultHttp2Headers[grpc-status: 0] padding=0 endStream=true
`
之前感觉是dubbo-go可能有问题,根据自己debug和日志,估计是dubbo java可能有问题,因为dubbogo是正确请求了。源码理解不够, @zhaoyunxing92
@ZLBer 你们有时间看下,有需要的话, dingtalk @我 。如果确认是Dubbo java 可能有问题的话,我再到dubbo java那边提下。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo-go] AlexStocks commented on issue #2178: 不支持 version+group 调用
Posted by GitBox <gi...@apache.org>.
AlexStocks commented on issue #2178:
URL: https://github.com/apache/dubbo-go/issues/2178#issuecomment-1381868290
@ZLBer
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo-go] CodingAdai commented on issue #2178: 不支持 version+group 调用
Posted by "CodingAdai (via GitHub)" <gi...@apache.org>.
CodingAdai commented on issue #2178:
URL: https://github.com/apache/dubbo-go/issues/2178#issuecomment-1411312102
好的,我对比测试下,我用的dubbo java 不是v3.0.3,我看下是否为我用的版本有相应问题。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo-go] CodingAdai commented on issue #2178: 不支持 version+group 调用
Posted by "CodingAdai (via GitHub)" <gi...@apache.org>.
CodingAdai commented on issue #2178:
URL: https://github.com/apache/dubbo-go/issues/2178#issuecomment-1418648715
我这边确认了,在triple协议下, 因dubbo go consumer在调用时version和group参数设置不正确造成 provider 返回 service not found 报错,我这边来修复它。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org