bvaradar edited a comment on issue #1375: [SUPPORT] HoodieDeltaStreamer offset 
not handled correctly
URL: https://github.com/apache/incubator-hudi/issues/1375#issuecomment-595961459
 
 
   @eigakow : Can you try the below patch  to see if the issue goes away. If 
you can confirm this works, I can put a PR to fix in the next version.
   
   ```
   diff --git 
a/hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java
 
b/hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java
   index 4ad88556..2989f200 100644
   --- 
a/hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java
   +++ 
b/hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java
   @@ -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
   
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to