You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2019/05/01 01:46:34 UTC

[GitHub] [incubator-hudi] vinothchandar commented on a change in pull request #650: Fix up offsets not available on leader exception

vinothchandar commented on a change in pull request #650: Fix up offsets not available on leader exception
URL: https://github.com/apache/incubator-hudi/pull/650#discussion_r279991578
 
 

 ##########
 File path: hoodie-utilities/src/main/java/com/uber/hoodie/utilities/sources/helpers/KafkaOffsetGen.java
 ##########
 @@ -235,6 +237,30 @@ public KafkaOffsetGen(TypedProperties props) {
     return offsetRanges;
   }
 
+  /***
+   * check up checkpoint offsets is valid or not, if true,  return checkpoint offsets, else return earliest offsets
+   * @param cluster,
+   * @param checkpointOffsets
+   * @param topicPartitions
+   * @return fromOffset
+   */
+  private HashMap<TopicAndPartition, KafkaCluster.LeaderOffset> checkupValidOffsets(KafkaCluster cluster,
+                                                                                    HashMap<TopicAndPartition, KafkaCluster.LeaderOffset> checkpointOffsets,
+                                                                                    Set<TopicAndPartition> topicPartitions ) {
+    java.util.Set<TopicAndPartition> partitions = checkpointOffsets.keySet();
 
 Review comment:
   sorry. I was asking if we can simply . import it at the top, to avoid fully qualified reference here. 

----------------------------------------------------------------
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