You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by Milind Parikh <mi...@gmail.com> on 2012/02/19 20:37:03 UTC
ConsoleProducer sync option
>From the printed usage pattern --> "--sync
If set message send requests to the
brokers are synchronously, one at
a
time as they arrive. "
seems to imply that the ConsoleProducer by default is sending messages to
the ConsoleConsumer in an async mode. Ie If you set the "--sync 1" then the
messages get set one at a time.
However default seems to be sync --> from the code
props.put("producer.type", if(async) "async" else "sync")
Is this a bug?
Regards
Milind
Re: ConsoleProducer sync option
Posted by Jun Rao <ju...@gmail.com>.
Milind,
Yes, that's a bug. Could you put it in the same jira that you created?
Thanks,
Jun
On Sun, Feb 19, 2012 at 11:37 AM, Milind Parikh <mi...@gmail.com>wrote:
> From the printed usage pattern --> "--sync
> If set message send requests to the
> brokers are synchronously, one at
> a
> time as they arrive. "
>
> seems to imply that the ConsoleProducer by default is sending messages to
> the ConsoleConsumer in an async mode. Ie If you set the "--sync 1" then the
> messages get set one at a time.
>
> However default seems to be sync --> from the code
> props.put("producer.type", if(async) "async" else "sync")
>
>
> Is this a bug?
>
> Regards
> Milind
>