KAFKA-17600: Add nextOffsets to the ConsumerRecords
This PR implements KIP-1094.
@lucasbru
I suppose (without checking further) that this would mean that partRecords is empty here.
I assume when control records are returned, partRecords is empty while the position is advanced.
I assume when control records are returned, partRecords is empty while the position is advanced.
You are right. Anyway, I'd assume we add a TP to nextOffsets if the position advanced.
I can have a look again tomorrow or next week to see if all comments have been addressed, and potentially merge it.
Thanks @AndrewJSchofield for the pointer. Yes, I followed the code, and as I stated before, when a control record is returned, the size of partRecords is 0 while the offset is updated.
@lucasbru I think the PR is ready for the last round of review. Thanks in advance.