dubbo-admin icon indicating copy to clipboard operation
dubbo-admin copied to clipboard

不支持triple协议吗? 试了下,不大兼容

Open ilaotan opened this issue 3 years ago • 7 comments

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.
  • [x] I have checked the REAMDE of this repository and believe that this is not a duplicate.

Environment

  • Dubbo Admin version: 0.4.0
  • Registry center detail (type and version): nacos 2.0.3
  • Operating System version: win10
  • Java version: 8

Steps to reproduce this issue

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps?

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

ilaotan avatar Mar 17 '22 09:03 ilaotan

你是说服务测试的时候不支持 triple 协议吗?

haoyann avatar Mar 28 '22 06:03 haoyann

现在默认是 dubbo 协议, 可以将 protocol 做为参数传递, 泛化调用的时候设置protocol 如: reference.setProtocol("tri"); 支持 triple 还需要引入 protobuf-java

        <dependency>
            <groupId>com.google.protobuf</groupId>
            <artifactId>protobuf-java</artifactId>
        </dependency>

haoyann avatar Jun 14 '22 10:06 haoyann

Triple 服务测试需要统一支持下,包括 go /java 和其他语言的客户端,建议的方式是内置获取元数据的接口,统一命令行或web页面的测试方式,可以参考 grpcurl 和 grpc-ui

guohao avatar Jun 16 '22 05:06 guohao

现在默认是 dubbo 协议, 可以将 protocol 做为参数传递, 泛化调用的时候设置protocol 如: reference.setProtocol("tri"); 支持 triple 还需要引入 protobuf-java

        <dependency>
            <groupId>com.google.protobuf</groupId>
            <artifactId>protobuf-java</artifactId>
        </dependency>

我按照这个方式测试了,还是不可行,我认为应该是org.apache.dubbo.common.serialize.Serialization这个spi扩展文件中缺少protobuf的序列化方式有关,2.x版本中是存在的,具体报错信息如下: No such extension org.apache.dubbo.common.serialize.Serialization by name protobuf, no related exception was found, please check whether related SPI module is missing.

habertzk avatar Jun 24 '22 10:06 habertzk

Triple 服务测试需要统一支持下,包括 go /java 和其他语言的客户端,建议的方式是内置获取元数据的接口,统一命令行或web页面的测试方式,可以参考 grpcurl 和 grpc-ui

good idea !

haoyann avatar Jun 27 '22 03:06 haoyann

@habertzk 可以提供一下 dubbo-admin 和 dubbo 的版本吗,我使用 admin develop 分支和 dubbo 3.0.8 是可以工作的.

haoyann avatar Jun 27 '22 03:06 haoyann

@habertzk 可以提供一下 dubbo-admin 和 dubbo 的版本吗,我使用 admin develop 分支和 dubbo 3.0.8 是可以工作的.

dubbo-admin 0.4.0 dubbo 3.0.6

habertzk avatar Jun 27 '22 09:06 habertzk