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

Jiangjie Qin commented on KAFKA-3018:
-------------------------------------

I agree that the producer should throw exception to user. 

As [~granthenke] mentioned, the problem comes from auto topic creation. Can we 
follow the similar way we are handling unauthorized topics? We can have a map 
of topicsWithErrors in Metadata and put the topics with errors we see in the 
MetadataResponse into this map. This way we can bubble up the exception to user 
thread easily.

BTW, after KIP-4, we should be able to easily bubble up the 
InvalidTopicException.

> Kafka producer hangs on producer.close() call if the producer topic contains 
> single quotes in the topic name
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-3018
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3018
>             Project: Kafka
>          Issue Type: Bug
>          Components: producer 
>    Affects Versions: 0.8.2.0
>            Reporter: kanav anand
>            Assignee: Jun Rao
>
> While creating topics with quotes in the name throws a exception but if you 
> try to close a producer configured with a topic name with quotes the producer 
> hangs.
> It can be easily replicated and verified by setting topic.name for a producer 
> with a string containing single quotes in it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to