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-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to