[ https://issues.apache.org/jira/browse/KAFKA-19613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18016512#comment-18016512 ]
FliegenKLATSCH commented on KAFKA-19613: ---------------------------------------- Line ~140: {code:java} } catch (KafkaException e) { if (fetch.isEmpty()) throw e;{code} On the first read, the 2 records would be returned. On the next read, we would throw the CorruptRecordException. If we seek then forward, we would skip only the broken Record(batches). > Expose consumer CorruptRecordException as case of KafkaException > ---------------------------------------------------------------- > > Key: KAFKA-19613 > URL: https://issues.apache.org/jira/browse/KAFKA-19613 > Project: Kafka > Issue Type: Improvement > Components: clients > Reporter: Uladzislau Blok > Assignee: Uladzislau Blok > Priority: Minor > Labels: need-kip > Attachments: corrupted_records.excalidraw.png > > > As part of analysis of KAFKA-19430 , we decided it would be useful to expose > root case of consumer request failure (e.g. currently we see just > KafkaException instead of CorruptRecordException) > The idea is to not change public API, but expose root case as a filed of > KafkaException -- This message was sent by Atlassian Jira (v8.20.10#820010)