spring-cloud / spring-cloud-stream-binder-kafka

Spring Cloud Stream binders for Apache Kafka and Kafka Streams
Apache License 2.0
331 stars 301 forks source link

Support for DLQ in batch mode #1206

Closed snussbaumer closed 2 years ago

snussbaumer commented 2 years ago

if an error occurs while processing messages in batch mode, there will be an error when sending the messages to the DLQ :

java.lang.ClassCastException: class java.util.LinkedList cannot be cast to class org.apache.kafka.clients.consumer.ConsumerRecord 

I stumbled upon this problem lately, found this stackoverflow post where Gary Russell asks to open an issue to request this :

The DLQ is not currently supported with batch listeners; please open an issue against spring-cloud-stream-binder-kafka on GitHub.

It seems the person asking the question did not follow on this advice, so here it is :)

sobychacko commented 2 years ago

Issue moved to spring-cloud/spring-cloud-stream #2317 via ZenHub