Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.16.0
-
None
Description
If a partition only contains one record - e.g.
[topicName=myTopic, partitionId=117, startOffset=0, endOffset=1]
no data is returned.
I fixed this locally with the following code change in contrib/storage-kafka :-
git diff src/main/java/org/apache/drill/exec/store/kafka/KafkaRecordReader.java @@ -109,7 +109,7 @@ public class KafkaRecordReader extends AbstractRecordReader { currentMessageCount = 0; try { - while (currentOffset < subScanSpec.getEndOffset() - 1 && msgItr.hasNext()) { + while (currentOffset < subScanSpec.getEndOffset() && msgItr.hasNext()) { ConsumerRecord<byte[], byte[]> consumerRecord = msgItr.next();
Attachments
Issue Links
- incorporates
-
DRILL-6723 Kafka reader fails on malformed JSON
- Resolved
-
DRILL-7290 “Failed to construct kafka consumer” using Apache Drill
- Resolved
-
DRILL-6739 Update Kafka libs to 2.0.0+ version
- Resolved
- links to