You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Guozhang Wang (JIRA)" <ji...@apache.org> on 2015/12/10 19:50:11 UTC

[jira] [Resolved] (KAFKA-2893) Add Negative Partition Seek Check

     [ https://issues.apache.org/jira/browse/KAFKA-2893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guozhang Wang resolved KAFKA-2893.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 0.9.0.1

Issue resolved by pull request 628
[https://github.com/apache/kafka/pull/628]

> Add Negative Partition Seek Check
> ---------------------------------
>
>                 Key: KAFKA-2893
>                 URL: https://issues.apache.org/jira/browse/KAFKA-2893
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients
>    Affects Versions: 0.9.0.0
>            Reporter: Jesse Anderson
>            Assignee: jin xing
>             Fix For: 0.9.0.1
>
>
> When adding add seek that is a negative number, there isn't a check. When you do give a negative number, you get the following output:
> {{2015-11-25 13:54:16 INFO  Fetcher:567 - Fetch offset null is out of range, resetting offset}}
> Code to replicate:
> KafkaConsumer<String, String> consumer = new KafkaConsumer<String, String>(props);
> TopicPartition partition = new TopicPartition(topic, 0);
> consumer.assign(Arrays.asList(partition));
> consumer.seek(partition, -1);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)