...
To accept different types of records from multiple topologies, ProducerRecord
is defined without generics. The above interface method will have a default
implementation which returns ProductionExceptionHandlerResponse.FAIL
Proposed Proposed Changes
This implementation will override the new method, handleSerializationException, in the following class:
...
We'll implement the following error handling logic to the send in RecordCollectorImpl. The new method, handleSerializationException
, in ProductionExceptionHandler will not be invoked whenfor
ClassCastException
is thrown while serializing record key / value. We will continue to throw this exception and not invoke the new method. This will allow the current behavior to continue as this can help identify misconfigured serdes
It will be invoked for
- Any other unchecked exceptions, that thrown during record key / value serialization.
- If the result is
CONTINUE
, log a note atWARN
that we received that result and are not failing Streams as a result. - If the result is
FAIL
, log a message atERROR
that we received that result and setsendException
so Streams will fail.
- If the result is
...