You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Matthias J. Sax (Jira)" <ji...@apache.org> on 2025/06/23 19:59:00 UTC

[jira] [Created] (KAFKA-19430) Don't fail on RecordCorruptedException

Matthias J. Sax created KAFKA-19430:
---------------------------------------

             Summary: Don't fail on RecordCorruptedException
                 Key: KAFKA-19430
                 URL: https://issues.apache.org/jira/browse/KAFKA-19430
             Project: Kafka
          Issue Type: Improvement
          Components: streams
            Reporter: Matthias J. Sax


From [https://github.com/confluentinc/kafka-streams-examples/issues/524]

Currently, the existing `DeserializationExceptionHandler` is applied when de-serializing the record key/value byte[] inside Kafka Streams. This implies that a `RecordCorruptedException` is not handled.

We should explore to not let Kafka Streams crash, but maybe retry this error automatically (as `RecordCorruptedException extends RetriableException`), and find a way to pump the error into the existing exception handler.

If the error is transient, user can still use `REPLACE_THREAD` in the uncaught exception handler, but this is a rather heavy weight approach.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)