jonvex commented on code in PR #10768:
URL: https://github.com/apache/hudi/pull/10768#discussion_r1504366039
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java:
##########
@@ -166,12 +166,12 @@ public static OffsetRange[]
computeOffsetRanges(Map<TopicPartition, Long> fromOf
if (toOffset == range.untilOffset()) {
exhaustedPartitions.add(range.partition());
}
- allocedEvents += toOffset - range.fromOffset();
// We need recompute toOffset if allocedEvents larger than
actualNumEvents.
Review Comment:
maybe "We need recompute toOffset if we have allocated more than
actualNumEvents. total allocated events = allocedEvents + (toOffset -
range.fromOffset())"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]