You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Guan Liao (JIRA)" <ji...@apache.org> on 2014/08/25 18:51:59 UTC

[jira] [Updated] (KAFKA-1496) Using batch message in sync producer only sends the first message if we use a Scala Stream as the argument

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

Guan Liao updated KAFKA-1496:
-----------------------------

    Attachment:     (was: kafka_1496v1.patch)

> Using batch message in sync producer only sends the first message if we use a Scala Stream as the argument 
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-1496
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1496
>             Project: Kafka
>          Issue Type: Bug
>          Components: producer 
>    Affects Versions: 0.8.1
>         Environment: Scala 2.10
>            Reporter: Guan Liao
>            Assignee: Jun Rao
>            Priority: Minor
>
> I am passing a Scala Stream to the producer as followed:
> producer.send(events.toSeq:*)
> The events was a Scala Stream of KeyedMessages. In sync mode, it will only send one message to Kafka while in async mode it was fine. I tracked down the issue and I'm attaching a fix for it.



--
This message was sent by Atlassian JIRA
(v6.2#6252)