[HUDI-663] Fix HoodieDeltaStreamer offset not handled correctly (#1377)
This commit is contained in:
@@ -180,7 +180,7 @@ public class KafkaOffsetGen {
|
|||||||
.map(x -> new TopicPartition(x.topic(), x.partition())).collect(Collectors.toSet());
|
.map(x -> new TopicPartition(x.topic(), x.partition())).collect(Collectors.toSet());
|
||||||
|
|
||||||
// Determine the offset ranges to read from
|
// Determine the offset ranges to read from
|
||||||
if (lastCheckpointStr.isPresent()) {
|
if (lastCheckpointStr.isPresent() && !lastCheckpointStr.get().isEmpty()) {
|
||||||
fromOffsets = checkupValidOffsets(consumer, lastCheckpointStr, topicPartitions);
|
fromOffsets = checkupValidOffsets(consumer, lastCheckpointStr, topicPartitions);
|
||||||
} else {
|
} else {
|
||||||
KafkaResetOffsetStrategies autoResetValue = KafkaResetOffsetStrategies
|
KafkaResetOffsetStrategies autoResetValue = KafkaResetOffsetStrategies
|
||||||
|
|||||||
Reference in New Issue
Block a user