[ 
https://issues.apache.org/jira/browse/KAFKA-7780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16734121#comment-16734121
 ] 

ASF GitHub Bot commented on KAFKA-7780:
---------------------------------------

ManoharVanam commented on pull request #6088: [KAFKA-7780] Kafka client should 
validate topic-level configs and update only unique values
URL: https://github.com/apache/kafka/pull/6088
 
 
   **User Interface Improvement :** Kafka client should validate topic-level 
configs, and throw exception in case of invalid (duplicate) config values.
   
   **Example:** ./kafka-topics.sh --create --topic test --partitions 2 
--replication-factor 1 --zookeeper localhost:2181 --config 
cleanup.policy=delete,compact,delete
   should throw exception like 
   Invalid value delete,compact,delete for configuration cleanup.policy: 
Contains duplicate values
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Kafka client should validate topic-level configs and update only unique values
> ------------------------------------------------------------------------------
>
>                 Key: KAFKA-7780
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7780
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients
>    Affects Versions: 2.1.0
>            Reporter: Manohar Vanam
>            Assignee: Manohar Vanam
>            Priority: Minor
>
> Kafka client should validate topic-level configs and update only unique 
> values.
> Current behaviour: 
> {code:java}
> ./kafka-topics.sh --create --topic dummy28 --partitions 2 
> --replication-factor 1 --zookeeper localhost:2181 --config 
> cleanup.policy=delete,compact,delete
> Created topic "dummy28".
> ./kafka-topics.sh --describe --topic dummy28 --zookeeper localhost:2181
> Topic:dummy28 PartitionCount:2 ReplicationFactor:1 
> Configs:cleanup.policy=*delete,compact,delete*
>  Topic: dummy28 Partition: 0 Leader: 0 Replicas: 0 Isr: 0
>  Topic: dummy28 Partition: 1 Leader: 0 Replicas: 0 Isr: 0{code}
> Expected behaviour:
> {code:java}
> ./kafka-topics.sh --describe --topic dummy28 --zookeeper localhost:2181
> Topic:dummy28 PartitionCount:2        ReplicationFactor:1     
> Configs:cleanup.policy=delete,compact
>       Topic: dummy28  Partition: 0    Leader: 0       Replicas: 0     Isr: 0
>       Topic: dummy28  Partition: 1    Leader: 0       Replicas: 0     Isr: 0
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to