We need to return an error code per partition since your fetch request
could've succeeded for some but not all partitions. For example, if one
broker fails, some partitions might temporarily return a LeaderNotAvailable
error code. So you have to go through the individual error codes to know
which partitions you need to retry the operation for.
On Oct 21, 2013 11:27 PM, "xingcan" <[EMAIL PROTECTED]> wrote: