Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What about the error report of Redis type exception

Shulou Source: shulou.com Published: 2022-06-01 04:58:39 09月26日 Update

This article will explain in detail what to do about Redis type abnormal error reporting. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

The scenario in which this problem occurs is that if you first put an int type data into the redis data, and then obtain it through decrementAndGet, the above error will be reported. The subsequent analysis is that the process of RBucket bucket = redissonClient.getBucket (key) caused by inconsistent codecs; the process of bucket.set (value) / / obtaining data RAtomicLong atomicLong = redissonClient.getAtomicLong (key); return atomicLong.decrementAndGet () / / the codec for putting data. Here codec uses the default codec. Here the project uses FST codec commandExecutor.writeAsync (getName (), codec, RedisCommands.SET, getName (), encode (value)); / / the codec for fetching data, using codec of String type, commandExecutor.writeAsync (getName (), StringCodec.INSTANCE, RedisCommands.SET, getName (), newValue) caused by inconsistency between the two codecs. This is the end of this article on "how to report an abnormal error of Redis type". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Data decoder type article how to do consistent more process good practical two content scene article knowledge error problem project report analysis Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux MySQL Microsoft macOS Huawei