apache / dubbo-spi-extensions

Apache Dubbo SPI Extensions
https://dubbo.apache.org/
Apache License 2.0
180 stars 108 forks source link

【3.2】 使用Protobuf做序列化器时,在INJVM模式会因为深度拷贝导致response字段为空 #267

Open vio-lin opened 9 months ago

vio-lin commented 9 months ago

What is the purpose of the change

修复INJVM模式下 Protobuf对象,不能被正常深度拷贝

Brief changelog

dubbo-spi-extensions\dubbo-serialization-extensions\dubbo-serialization-protobuf\src\test\java\org\apache\dubbo\common\serialize\protobuf\support\ProtobufParamDeepCopyUtilTest.java

dubbo-spi-extensions\dubbo-serialization-extensions\dubbo-serialization-protobuf\src\main\resources\META-INF\dubbo\internal\org.apache.dubbo.rpc.protocol.injvm.ParamDeepCopyUtil

Verifying this change

增加一个wraper 扩展,假如继承protobuf的接口,则使用另外的序列化器。

Follow this checklist to help us incorporate your contribution quickly and easily:

aofall commented 5 months ago

may be fixed in #268

Alleninggx commented 1 month ago

https://github.com/apache/dubbo/issues/12377