hudi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-hudi] bvaradar commented on issue #1375: [SUPPORT] HoodieDeltaStreamer offset not handled correctly
Date Fri, 06 Mar 2020 20:55:11 GMT
bvaradar commented 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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message