[
https://issues.apache.org/jira/browse/KAFKA-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15158019#comment-15158019
]
Chi Hoang commented on KAFKA-3018:
----------------------------------
I encountered this, if not a similar, problem. I unknowingly had double-quotes
in the topic name and I couldn't get topic metadata from the cluster because
the server tried the validate the topic and determined it was not valid. The
message the server returned was InvalidTopicException, but the producer logs
only showed INVALID_TOPIC_EXCEPTION - "The request attempted to perform an
operation on an invalid topic." I had a lot of trouble tracking this down.
This could be be improved by failing early adding a topic name validation in
the ProducerRecord instantiation.
I ran this against trunk and 0.9.0.0 to confirm that the behavior is the same
in each.
> 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)