GitHub user rhauch opened a pull request:
https://github.com/apache/kafka/pull/3662
KAFKA-5731 Corrected how the sink task worker updates the last committed
offsets
Prior to this change, it was possible for the synchronous consumer commit
request to be handled before previously-submitted asynchronous commit requests.
If that happened, the out-of-order handlers improperly set the last committed
offsets, which then became inconsistent with the offsets the connector task is
working with.
This change ensures that the last committed offsets are updated only for
the most recent commit request, even if the consumer reorders the calls to the
callbacks.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rhauch/kafka kafka-5731
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/3662.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 #3662
commit be34cf05fe6956a24b77b35a689bda7b55e7de12
Author: Randall Hauch
Date: 2017-08-12T00:42:06Z
KAFKA-5731 Corrected how the sink task worker updates the last committed
offsets
Prior to this change, it was possible for the synchronous consumer commit
request to be handled before previously-submitted asynchronous commit requests.
If that happened, the out-of-order handlers improperly set the last committed
offsets, which then became inconsistent with the offsets the connector task is
working with.
This change ensures that the last committed offsets are updated only for
the most recent commit request, even if the consumer reorders the calls to the
callbacks.
---
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.
---