[
https://issues.apache.org/jira/browse/KAFKA-5682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sarwar Bhuiyan updated KAFKA-5682:
----------------------------------
Description:
When we encounter an exception when validating a fetched record or when
deserializing it, we raise it to the user and keep the consumer's current
position at the offset of the failed record. The expectation is that the user
will either propagate the exception and shutdown or seek past the failed
record. However, in the latter case, there is no way for the user to know which
topic partition had the failed record. We should consider exposing an exception
type to expose this information which users can catch.
was:
When we encounter an exception when deserializing it, we raise it to the user
and keep the consumer's current position at the offset of the failed record.
The expectation is that the user will either propagate the exception and
shutdown or seek past the failed record. However, in the latter case, there is
no way for the user to know which topic partition had the failed record. We
should consider exposing an exception type to expose this information which
users can catch.
> Consumer should include partition in exceptions raised during record
> parsing/validation
> ---------------------------------------------------------------------------------------
>
> Key: KAFKA-5682
> URL: https://issues.apache.org/jira/browse/KAFKA-5682
> Project: Kafka
> Issue Type: Improvement
> Components: consumer
> Reporter: Jason Gustafson
> Assignee: Sarwar Bhuiyan
> Priority: Minor
> Labels: kip-334
>
> When we encounter an exception when validating a fetched record or when
> deserializing it, we raise it to the user and keep the consumer's current
> position at the offset of the failed record. The expectation is that the user
> will either propagate the exception and shutdown or seek past the failed
> record. However, in the latter case, there is no way for the user to know
> which topic partition had the failed record. We should consider exposing an
> exception type to expose this information which users can catch.
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)