Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-2893

Add Negative Partition Seek Check

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0.0
    • Fix Version/s: 0.9.0.1
    • Component/s: clients
    • Labels:
      None

      Description

      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);

        Attachments

          Activity

            People

            • Assignee:
              jinxing6042@126.com jin xing
              Reporter:
              eljefe6aa Jesse Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: