The ack mode is default value 0.

   - 0, which means that the producer never waits for an acknowledgement
   from the broker (the same behavior as 0.7). This option provides the lowest
   latency but the weakest durability guarantees (some data will be lost when
   a server fails).

And msg1 and msg2 may not be sent by one broker.


2015-11-21 7:56 GMT+08:00 Guozhang Wang <wangg...@gmail.com>:

> Yonghui,
>
> What is the ack mode for the producer clients? And are msg1 and msg2 sent
> by the same producer?
>
> Guozhang
>
> On Thu, Nov 19, 2015 at 10:59 PM, Yonghui Zhao <zhaoyong...@gmail.com>
> wrote:
>
> > Broker setting is:  8 partitions, 1 replica,  kafka version 0.8.1
> >
> > We send 2 message at almost same time.
> >
> > Msg1 first, Msg2 second.
> >
> > We have more than 1 producers in sync mode.
> >
> > We may send msg1 in one broker, after *producer.send return response*
> > And send msg2 in the other broker.
> >
> > Both 2 msg has same partition key.
> >
> > In consumer side, we find the 2 msg is in same partition as expected,
> but
> > the order is inverted as msg2, msg1.
> >
> > Is it possible for kafka?
> >
>
>
>
> --
> -- Guozhang
>

Reply via email to