kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pratika Dola (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-5835) CommitFailedException message is misleading and cause is swallowed
Date Wed, 01 Nov 2017 11:40:00 GMT

    [ https://issues.apache.org/jira/browse/KAFKA-5835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16233954#comment-16233954

Pratika Dola commented on KAFKA-5835:

Is this still open? Can I work on it?

> CommitFailedException message is misleading and cause is swallowed
> ------------------------------------------------------------------
>                 Key: KAFKA-5835
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5835
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients
>    Affects Versions:
>            Reporter: Stevo Slavic
>            Assignee: Rekha Joshi
> {{CommitFailedException}}'s message suggests that it can only be thrown as consequence
of rebalancing. JavaDoc of the {{CommitFailedException}} suggests differently that in general
it can be thrown for any kind of unrecoverable failure from {{KafkaConsumer#commitSync()}}
call (e.g. if offset being committed is invalid / outside of range).
> {{CommitFailedException}}'s message is misleading in a way that one can just see the
message in logs, and without consulting JavaDoc or source code one can assume that message
is correct and that rebalancing is the only potential cause, so one can wast time proceeding
with the debugging in wrong direction.
> Additionally, since {{CommitFailedException}} can be thrown for different reasons, cause
should not be swallowed. This makes impossible to handle each potential cause in a specific
way. If the cause is another exception please pass it as cause, or construct appropriate exception
hierarchy with specific exception for every failure cause and make {{CommitFailedException}}

This message was sent by Atlassian JIRA

View raw message