You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "paoyingshidai (via GitHub)" <gi...@apache.org> on 2023/05/07 03:19:35 UTC

[GitHub] [dubbo] paoyingshidai commented on issue #12243: springcloud 和 dubbo 同时使用 zookeeper 注册, 发生序列化错误

paoyingshidai commented on issue #12243:
URL: https://github.com/apache/dubbo/issues/12243#issuecomment-1537278142

   > 使用SpringCloud框架Zookeeper做注册中心存储的是Spring的实例对象 Dubbo存储的Dubbo的实例对象 dubbo可以通过开发适配器适配SpringCloud的实例对象场景,不过Dubbo的实例对象应该Spring那边也是无法获取到的,需要一起测下这两个场景,看看两边怎么互通
   
   刚试了下,provider 把 spring.cloud.zookeeper.discovery.enabled=false 加上,就不会冲突。就是说 dubbo 的注册实例跟 SpringCloud 的注册实例冲突了,两种类型转换的时候出现问题了。这个实例在序列化和反序列化的时候应该做个适配。
   ···
   具体位置在:
   @see org.apache.curator.x.discovery.details.JsonInstanceSerializer#deserialize
   ···
   


-- 
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