[ 
https://issues.apache.org/jira/browse/KAFKA-6050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tom Bentley reassigned KAFKA-6050:
----------------------------------

    Assignee: Tom Bentley

> --entity-name <default> should print error message
> --------------------------------------------------
>
>                 Key: KAFKA-6050
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6050
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Tom Bentley
>            Assignee: Tom Bentley
>
> The command to describe the default topic config
> {noformat}
> bin/kafka-configs.sh --zookeeper localhost:2181 \
>   --describe --entity-type topics --entity-name '<default>'
> {noformat}
> returns without error, but the equivalent command to alter the default topic 
> config:
> {noformat}
> bin/kafka-configs.sh --zookeeper localhost:2181 --alter \
>   --entity-type topics --entity-name '<default>' --add-config 
> retention.ms=1000
> {noformat}
> returns an error:
> {noformat}
> Error while executing config command Topic name "<default>" is illegal, it 
> contains a character other than ASCII alphanumerics, '.', '_' and '-'
> org.apache.kafka.common.errors.InvalidTopicException: Topic name "<default>" 
> is illegal, it contains a character other than ASCII alphanumerics, '.', '_' 
> and '-'
>       at org.apache.kafka.common.internals.Topic.validate(Topic.java:45)
>       at kafka.admin.AdminUtils$.validateTopicConfig(AdminUtils.scala:578)
>       at kafka.admin.AdminUtils$.changeTopicConfig(AdminUtils.scala:595)
>       at kafka.admin.AdminUtilities$class.changeConfigs(AdminUtils.scala:52)
>       at kafka.admin.AdminUtils$.changeConfigs(AdminUtils.scala:63)
>       at kafka.admin.ConfigCommand$.alterConfig(ConfigCommand.scala:103)
>       at kafka.admin.ConfigCommand$.main(ConfigCommand.scala:70)
>       at kafka.admin.ConfigCommand.main(ConfigCommand.scala)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to