default.production.exception.handler is not called on serialization error

87 views
Skip to first unread message

Katya Gorshkova

unread,
Sep 19, 2018, 4:20:30 AM9/19/18
to Confluent Platform
Hi!

I use Kafka Streams 1.1.0 and have a problem with processing serialization errors.

I have two topics, incoming and outcoming, each has different avro schema. I read data from the incoming topic, filter them, map them with mapValues method and write them to output topic. 
If during the mapping some mandatory fields are null then NullPointerException is thrown and the stream shuts down.

I have the following properties:

default.production.exception.handler=mypackage.ProductionHandler
default.deserialization.exception.handler=org.apache.kafka.streams.errors.LogAndContinueExceptionHandler

However neither of the handlers is called. Is it a correct behavior?

Thanks,
Katya
Reply all
Reply to author
Forward
0 new messages