Closed SocketNet closed 3 years ago
@SocketNet 你的意思是反序列化后得到的字符串有丢失吗?
是的,部分丢失。并不是所有字符串都有问题。昨天上线后10w的消息里至少1k条是有问题的。需要的话,这边可以提供更多数据
@SocketNet 加了单元测试是可以的,你看看是不是可以模拟出问题? https://github.com/apache/dubbo-go-hessian2/pull/273
👍好的,我今天找时间验证下
@SocketNet 有找到问题吗?
Java 对象
转 JSON字符串后通过 Hessian2Output 序列化,得到以下数据
1;{"params":{"fromAccid":"23495382","msgType":100,"msgId":"148ef1b2-808d-48f2-b268-7a1018a27bdb","attach":"{\"accid\":\"23495382\",\"classRoomFlag\":50685,\"msgId\":\"599645021431398400\",\"msgType\":\"100\",\"nickname\":\"橙子������\"}","roomid":413256699},"url":"https://api.netease.im/nimserver/chatroom/sendMsg.action"}
Go 还原后得到以下数据
{"params":{"fromAccid":"23495382","msgType":100,"msgId":"148ef1b2-808d-48f2-b268-7a1018a27bdb","attach":"{\"accid\":\"23495382\",\"classRoomFlag\":50685,\"msgId\":\"599645021431398400\",\"msgType\":\"100\",\"nickname\":\"橙子������\"}","roomid":413256699},"url":"https://api.netease.im/nimserver/chatroom/sendMsg.acti
无法还原Java通过Hessian2Output Encode前的JsonString