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

kafka-topics.sh alter add partitions resets cleanup.policy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.1.1
    • 0.8.2.0
    • None
    • None

    Description

      When partitions are added to an already existing topic the cleanup.policy=compact is not retained.

      ./kafka-topics.sh --zookeeper localhost --create --partitions 1 --replication-factor 1 --topic KTEST --config cleanup.policy=compact
      
      ./kafka-topics.sh --zookeeper localhost --describe --topic KTEST
      Topic:KTEST	PartitionCount:1	ReplicationFactor:1	Configs:cleanup.policy=compact
      	Topic: KTEST	Partition: 0	Leader: 0	Replicas: 0	Isr: 0
      
      ./kafka-topics.sh --zookeeper localhost --alter --partitions 3 --topic KTEST --config cleanup.policy=compact
      
       ./kafka-topics.sh --zookeeper localhost --describe --topic KTEST
      Topic:KTEST	PartitionCount:3	ReplicationFactor:1	Configs:
      	Topic: KTEST	Partition: 0	Leader: 0	Replicas: 0	Isr: 0
      	Topic: KTEST	Partition: 1	Leader: 0	Replicas: 0	Isr: 0
      	Topic: KTEST	Partition: 2	Leader: 0	Replicas: 0	Isr: 0
      

      Attachments

        1. KAFKA-1562_2014-07-30_13:18:21.patch
          6 kB
          Jonathan Natkins
        2. KAFKA-1562_2014-07-30_13:51:25.patch
          6 kB
          Jonathan Natkins
        3. KAFKA-1562_2014-08-02_11:10:34.patch
          7 kB
          Jonathan Natkins
        4. KAFKA-1562.patch
          5 kB
          Jonathan Natkins

        Activity

          People

            natty Jonathan Natkins
            kenmacd Kenny
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: