Skip to content

Commit 34c48f5

Browse files
garyrussellartembilan
authored andcommitted
GH-2415: Doc for DeserializationEx... with DLPR
Resolves #2415
1 parent 5df2568 commit 34c48f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-kafka-docs/src/main/asciidoc/kafka.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4625,6 +4625,9 @@ void listen(List<ConsumerRecord<String, Thing>> in) {
46254625
----
46264626
====
46274627

4628+
IMPORTANT: If you are also using a `DeadLetterPublishingRecoverer`, the record published for a `DeserializationException` will have a `record.value()` of type `byte[]`; this should not be serialized.
4629+
Consider using a `DelegatingByTypeSerializer` configured to use a `ByteArraySerializer` for `byte[]` and the normal serializer (Json, Avro, etc) for all other types.
4630+
46284631
[[payload-conversion-with-batch]]
46294632
===== Payload Conversion with Batch Listeners
46304633

0 commit comments

Comments
 (0)