GitHub user danny0405 opened a pull request:
https://github.com/apache/storm/pull/1851
Kafka spout should consume from latest when zk offset bigger than latest
offset
Kafka spout should consume from latest when ZK offset bigger than latest
offset[ an TopicOffsetOutOfRangeException thrown out ], especially when Kafka
topic change it's leader and some data lost, if we consume from earliest
offset, much meaningless duplicate records will be re-consumed. So, we should
consume from latest offset instead.
This is the jira task:
[STORM-2270](https://issues.apache.org/jira/browse/STORM-2270)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/danny0405/storm cyz-dev
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/storm/pull/1851.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 #1851
----
commit 032f1f33af93c99c27c53a6fb0cbe83f8d5fdb8b
Author: chenyuzhao <[email protected]>
Date: 2017-01-04T02:57:01Z
kafka spout consume from latest when zk offset bigger than latest offset
----
---
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.
---