1
0

[HUDI-663] Fix HoodieDeltaStreamer offset not handled correctly (#1377)

This commit is contained in:
lamber-ken
2020-03-22 12:31:48 -05:00
committed by GitHub
parent 1e1d9e1d34
commit 38c3ccc51a

View File

@@ -180,7 +180,7 @@ public class KafkaOffsetGen {
.map(x -> new TopicPartition(x.topic(), x.partition())).collect(Collectors.toSet());
// Determine the offset ranges to read from
if (lastCheckpointStr.isPresent()) {
if (lastCheckpointStr.isPresent() && !lastCheckpointStr.get().isEmpty()) {
fromOffsets = checkupValidOffsets(consumer, lastCheckpointStr, topicPartitions);
} else {
KafkaResetOffsetStrategies autoResetValue = KafkaResetOffsetStrategies