The topic/partition ordering in the producer response may not be the same
as that in the request. In each request, there is supposed to be one
instance per topic/partition.

Thanks,

Jun


On Wed, Jun 11, 2014 at 5:27 PM, Dave Peterson <dspeter...@tagged.com>
wrote:

> Hello, I have a question about produce requests and responses.
> I send a produce request containing multiple topics, and get
> back a response from the broker containing all topics from the
> request.  However, the ordering of the topics in the response
> differs from the ordering of the topics in the request.
>
> Is this expected behavior?  If so, then suppose I send a
> request in which the same topic appears twice.  To avoid
> ambiguity when processing the response, I'm guessing that I
> should either avoid sending multiple instances of the same
> topic in one request, or make sure the instances are
> distinguishable by the partition(s) they contain.  Is this
> correct?
>
> Likewise, suppose I send a produce request containing a single
> instance of some topic, and the instance contains multiple
> partitions (each with a corresponding message set).  In the
> produce response, is it possible that the ordering of the ACKs
> for the partitions will differ from ordering of the partitions
> in the request?
>
>
> Thanks,
> Dave
>

Reply via email to