You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Greg Zoller (JIRA)" <ji...@apache.org> on 2016/04/20 23:52:25 UTC

[jira] [Resolved] (KAFKA-3568) KafkaProducer fails with timeout on message send()

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

Greg Zoller resolved KAFKA-3568.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 0.10.0.0
                   0.10.1.0

Wow!  What a find!  Thank you so much.  You've saved my sanity.  I couldn't fathom how commented-out lines of code would make a difference, but they did, and now I understand why.

> 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
>             Fix For: 0.10.1.0, 0.10.0.0
>
>
> 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)