You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "Abhishek Agarwal (JIRA)" <ji...@apache.org> on 2016/01/08 14:21:39 UTC

[jira] [Created] (STORM-1455) kafka spout should not reset to the beginning of partition when offsetoutofrange exception occurs

Abhishek Agarwal created STORM-1455:
---------------------------------------

             Summary: 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: 0.11.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)