kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stevo Slavic (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-5835) CommitFailedException message is misleading and cause is swallowed
Date Tue, 05 Sep 2017 08:50:00 GMT
Stevo Slavic created KAFKA-5835:

             Summary: 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
            Priority: Trivial

{{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