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

Guan Liao edited comment on KAFKA-1496 at 8/25/14 4:53 PM:
-----------------------------------------------------------

This new patch includes a test. Saw that there was one already, so I modified 
the existing one to test for Stream. Patch was redone on top of latest trunk.


was (Author: gliao):
includes test

> 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
>         Attachments: kafka_1496v2.patch
>
>
> 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)

Reply via email to