forked from apache/kafka
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always set lastCommittedPartitionsAndOffsets in scala consumer (#26)
Always set lastCommittedPartitionsAndOffsets in old ZookeeperConsumerConnector. Currently lastCommittedPartitionsAndOffsets is only set when offsetsToCommit is not empty and commit succeed, this causes problems during consumer migration when commit fails or have nothing to commit, since during migration, consumer will first try to get lastCommittedPartitionsAndOffsets from zk, then commit them to kafka. If lastCommittedPartitionsAndOffsets is not updated when commit fails or nothing to commit, it will keep getting the old committed offsets, thus can overwrite correct offsets.
- Loading branch information
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters