Skip to content

Commit 766333c

Browse files
garyrussellartembilan
authored andcommitted
GH-2415: Doc for DeserializationEx... with DLPR
Resolves #2415
1 parent 8ad588e commit 766333c

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
@@ -4656,6 +4656,9 @@ void listen(List<ConsumerRecord<String, Thing>> in) {
46564656
----
46574657
====
46584658

4659+
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.
4660+
Consider using a `DelegatingByTypeSerializer` configured to use a `ByteArraySerializer` for `byte[]` and the normal serializer (Json, Avro, etc) for all other types.
4661+
46594662
[[payload-conversion-with-batch]]
46604663
===== Payload Conversion with Batch Listeners
46614664

0 commit comments

Comments
 (0)