[ https://issues.apache.org/jira/browse/KAFKA-3568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15249149#comment-15249149 ]
Gwen Shapira commented on KAFKA-3568: ------------------------------------- Hi, Thanks for the interesting analysis, [~gzoller]. I am definitely confused. A quick grep of Kafka code shows nothing that reads the file directly (only through Properties.load()) Just few more details, so I can try to reproduce: 1. When you flipped between the "good" and "bad" versions, did you switch the client (producer)? broker? both? 2. Your code snippet takes "host" as a parameter. Since we are dealing with a connectivity issue, can you add details on how it gets the hostname in the first place? Thank you! > KafkaProducer fails with timeout on message send() > -------------------------------------------------- > > Key: KAFKA-3568 > URL: https://issues.apache.org/jira/browse/KAFKA-3568 > Project: Kafka > Issue Type: Bug > Components: clients > Affects Versions: 0.10.1.0 > Environment: MacOS Docker > Reporter: Greg Zoller > Labels: producer > > I had a KafkaProducer working fine in 0.9.0.1. I was having unrelated > problems in that version so thought to try 0.10.1.0. I built it as I did > 0.9.0.1: > Fresh build against Scala 2.11.7. Built the tgz build plus local maven > install. From the tgz I created a Docker image similar to spotify/kafka. I > linked my producer code to the maven jars. This process worked in 0.9. > Code is here: > https://gist.github.com/gzoller/145faef1fefc8acea212e87e06fc86e8 > At the bottom you can see a clip from the output... there's a warning about > metadata (not sure if its important or not) and then its trying to send() > messages and timing out. I clipped the output, but it does fail the same way > for each message sent in 0.10.1.0. Same code compiled against 0.9.0.1 > populates the topic's partitions w/o problem. > Was there a breaking change between 0.9 and 0.10, or is this a bug? -- This message was sent by Atlassian JIRA (v6.3.4#6332)