[
https://issues.apache.org/jira/browse/STORM-1455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15112864#comment-15112864
]
ASF GitHub Bot commented on STORM-1455:
---------------------------------------
Github user revans2 commented on the pull request:
https://github.com/apache/storm/pull/1026#issuecomment-174012240
First of all travis saw a compilation failure.
```
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/home/travis/build/apache/storm/external/storm-kafka/src/jvm/org/apache/storm/kafka/KafkaSpout.java:[103,39]
cannot find symbol
symbol: method
setLatestEmittedOffset(org.apache.storm.kafka.Partition,long)
location: variable _kafkaOffsetMetric of type
org.apache.storm.kafka.KafkaUtils.KafkaOffsetMetric
[ERROR]
/home/travis/build/apache/storm/external/storm-kafka/src/jvm/org/apache/storm/kafka/trident/TridentKafkaEmitter.java:[68,27]
cannot find symbol
symbol: method
setLatestEmittedOffset(org.apache.storm.kafka.Partition,java.lang.Long)
location: variable _kafkaOffsetMetric of type
org.apache.storm.kafka.KafkaUtils.KafkaOffsetMetric
```
> kafka spout should not reset to the beginning of partition when
> offsetoutofrange exception occurs
> -------------------------------------------------------------------------------------------------
>
> Key: STORM-1455
> URL: https://issues.apache.org/jira/browse/STORM-1455
> Project: Apache Storm
> Issue Type: Bug
> Components: storm-kafka
> Affects Versions: 1.0.0
> Reporter: Abhishek Agarwal
> Assignee: Abhishek Agarwal
>
> https://github.com/apache/storm/blob/master/external/storm-kafka/src/jvm/storm/kafka/PartitionManager.java#L190
> {noformat}
> try {
> msgs = KafkaUtils.fetchMessages(_spoutConfig, _consumer,
> _partition, offset);
> } catch (TopicOffsetOutOfRangeException e) {
> _emittedToOffset = KafkaUtils.getOffset(_consumer,
> _partition.topic, _partition.partition,
> kafka.api.OffsetRequest.EarliestTime());
> LOG.warn("{} Using new offset: {}", _partition.partition,
> _emittedToOffset);
> {noformat}
> If there was one old offset out of range, partition manager will re-send all
> the offsets from EarliestTime to _emittedOffset.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)