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

When a topic is deleted and then created with the same name, 'committed' offsets are not reset

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.9.0.1, 0.10.0.0
    • None
    • consumer
    • None

    Description

      I encountered a very strange behavior of Kafka, which seems to be a bug.
      After deleting a topic and re-creating it with the same name, I produced certain amount of new messages, and then opened a consumer with the same ID that I used before re-creating the topic (with auto.commit=false, auto.offset.reset=earliest). While the latest offsets seemed up to date, the committed offset (returned by committed() method) was an old offset, from the time before the topic has been deleted and created.
      I would have assumed that when a topic is deleted, all the associated topic-partitions and consumer groups are recycled too.
      I am using the Java client version 0.9, with Kafka server 0.10.

      Attachments

        Issue Links

          Activity

            People

              vahid Vahid Hashemian
              glikson Alex Glikson
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: