lettuce icon indicating copy to clipboard operation
lettuce copied to clipboard

Avoid out of sync caused by RedisCodec.encodeValue returning null

Open bytestreme opened this issue 1 year ago • 1 comments

2012-fix-out-of-sync-when-encodeValue-returns-null

Make sure that:

  • [x] You have read the contribution guidelines.
  • [x] You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.

bytestreme avatar Aug 10 '22 09:08 bytestreme

relates to https://github.com/lettuce-io/lettuce-core/issues/2180 https://github.com/lettuce-io/lettuce-core/issues/2012

bytestreme avatar Aug 10 '22 10:08 bytestreme

We do not want to work around API rules to let folks circumvent these in one place and fix these in another place. The wiki is updated now. If you have code that is highly likely to break during serialization, then either provide a more protective RedisCodec variant or perform serialization in your calling code to raise exceptions eagerly.

mp911de avatar Aug 15 '22 06:08 mp911de