[ https://issues.apache.org/jira/browse/KAFKA-495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13448166#comment-13448166 ]
Jay Kreps commented on KAFKA-495: --------------------------------- A couple suggestions: 1. This is a fairly conservative character list. Is there a rationale for being more conservative? 2. I don't think this list should be configurable, we should be able to put in our documentation what is legal and have that always be true and not worry about what happens if someone changes the definition of legal characters. 3. One corner case we need to consider is the interaction between regular expressions and topic names. 4. This patch does ~30 passes over the topic name, it would probably be faster to use a pre-compiled regular expression > Handle topic names with "/" on Kafka server > ------------------------------------------- > > Key: KAFKA-495 > URL: https://issues.apache.org/jira/browse/KAFKA-495 > Project: Kafka > Issue Type: Bug > Affects Versions: 0.7, 0.8 > Reporter: Neha Narkhede > Assignee: Swapnil Ghike > Labels: bugs > Fix For: 0.8, 0.7.1 > > Attachments: kafka-495-v1.patch > > > If a producer publishes data to topic "foo/foo", the Kafka server ends up > creating an invalid directory structure on the server. This corrupts the > zookeeper data structure for the topic - /brokers/topics/foo/foo. This leads > to rebalancing failures on the consumer as well as errors on the zookeeper > based producer. > We need to harden the invalid topic handling on the Kafka server side to > avoid this. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira