使用管道插入的数据,使用redisTemplate取值报错

Blade 未结 1 780
lingxi
lingxi 2021-10-27 17:45

一、该问题的重现步骤是什么?

1. REDIS使用API调用pipeline插入数据,存入数据库没问题,取的时候有问题

2. 编码自定义序列化方式,与框架封装的,不兼容

3.lingxiRedis 不支持管道,只能自己写

4.参考的

https://blog.csdn.net/xiaoliu598906167/article/details/82218525?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.essearch_pc_relevant&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.essearch_pc_relevant


二、你期待的结果是什么?实际看到的又是什么?

访问管道插入redis的数据可以正常取出


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

正在使用bladex+saber

版本2.7.1

操作系统windows10


四、请提供详细的错误堆栈信息,这很重要。

Caused by: io.protostuff.ProtobufException: While parsing a protocol message, the input ended unexpectedly in the middle of a field.  This could mean either than the input has been truncated or that an embedded message misreported its own length.

 at io.protostuff.ProtobufException.truncatedMessage(ProtobufException.java:76)

 ... 38 common frames omitted

Caused by: java.lang.ArrayIndexOutOfBoundsException: 9

 at io.protostuff.ByteArrayInput.readRawVarint32(ByteArrayInput.java:564)

 at io.protostuff.ByteArrayInput.readFieldNumber(ByteArrayInput.java:240)

 at io.protostuff.runtime.RuntimeSchema.mergeFrom(RuntimeSchema.java:457)

 at io.protostuff.IOUtil.mergeFrom(IOUtil.java:45)

 ... 37 common frames omitted



五、若有更多详细



1条回答
  •  lingxi
    lingxi (楼主)
    2021-10-27 17:47

    list  hash  两种结构都用不了管道

    0 讨论(0)
提交回复