GitHub user guozhangwang opened a pull request:

    https://github.com/apache/kafka/pull/3534

    KAFKA-5006: Improve thrown exception

    1. Only log an ERROR on the first encountered exception from the callback.
    
    2. Wrap the exception message with the first thrown message information, 
and throw the exception whenever `checkException` is called.
    
    Therefore, for the `store.put` call, it will throw a `KafkaException` with 
the following error message:
    
    Which is more intuitive.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/guozhangwang/kafka 
K5006-exception-record-collector

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/3534.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3534
    
----
commit b0fff476bffa871f1d1cdda4435558c3668934cf
Author: Guozhang Wang <wangg...@gmail.com>
Date:   2017-07-15T23:25:14Z

    improve thrown exception

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to