You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Mickael Maison (Jira)" <ji...@apache.org> on 2020/07/02 11:42:00 UTC

[jira] [Created] (KAFKA-10227) Enforce cleanup policy to only contain compact or delete once

Mickael Maison created KAFKA-10227:
--------------------------------------

             Summary: Enforce cleanup policy to only contain compact or delete once
                 Key: KAFKA-10227
                 URL: https://issues.apache.org/jira/browse/KAFKA-10227
             Project: Kafka
          Issue Type: Bug
          Components: core
    Affects Versions: 2.6.0
            Reporter: Mickael Maison


When creating or altering a topic, it's possible to set cleanup.policy to values like "compact,compact,delete".

For example:
 {{./bin/kafka-topics.sh --bootstrap-server localhost:9092 --create --topic test --partitions 1 --replication-factor 1 --config cleanup.policy=compact,compact,delete}}

{{./bin/kafka-topics.sh --bootstrap-server localhost:9092 --describe}}
 {{Topic: test PartitionCount: 1 ReplicationFactor: 1 Configs: cleanup.policy=compact,compact,delete,segment.bytes=1073741824}}

 

 We should prevent this and enforce cleanup policy contains each value only once.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)