Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for insufficient data when we try to get the records.
In some corner cases (like v2 records produced on the topic but the sarama consumer uses v0 Fetch API with a limit less than one record size) we might receive a truncated record batch. We want to be able to make progress by increasing the fetch limit, so don't return an error, but rater mark the batch as partial trailing record.
- Loading branch information