GitHub user vahidhashemian opened a pull request:
https://github.com/apache/kafka/pull/1944
KAFKA-4234: Temporarily disable committing offsets in consumer's
`unsubscribe()`
Temporarily disable the offset commit (when auto commit is enabled) in the
new consumer's `unsubscribe()` method towards a workaround for the issue
reported in [KAFKA-3491](https://issues.apache.org/jira/browse/KAFKA-3491).
For now, a call to `unsubscribe()` can be made to reset the offsets in case
processing the batch received from the most recent `poll()` is interrupted (due
to some exception).
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/vahidhashemian/kafka KAFKA-4234
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/1944.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 #1944
----
commit 6e850b65904031cb4f8c21834d10cd746cc62f42
Author: Vahid Hashemian <[email protected]>
Date: 2016-09-30T18:36:22Z
KAFKA-4234: Temporarily disable committing offsets in consumer's
unsubscribe()
Temporarily disable the offset commit (when auto commit is enabled) in the
new consumer's `unsubscribe()` method towards a workaround for the issue
reported in [KAFKA-3491](https://issues.apache.org/jira/browse/KAFKA-3491).
For now, a call to `unsubscribe()` can be made to reset the offsets in case
processing the batch received from the most recent `poll()` is interrupted (due
to some 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 [email protected] or file a JIRA ticket
with INFRA.
---