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/12/17 05:47:14 UTC

[GitHub] [incubator-hudi] lamber-ken commented on a change in pull request #1105: [HUDI-405] Fix sync no hive partition at first time

lamber-ken commented on a change in pull request #1105: [HUDI-405] Fix sync no hive partition at first time
URL: https://github.com/apache/incubator-hudi/pull/1105#discussion_r358611033
 
 

 ##########
 File path: hudi-hive/src/main/java/org/apache/hudi/hive/HoodieHiveClient.java
 ##########
 @@ -632,24 +632,33 @@ public void close() {
     if (!lastCommitTimeSynced.isPresent()) {
       LOG.info("Last commit time synced is not known, listing all partitions in " + syncConfig.basePath + ",FS :" + fs);
       try {
-        return FSUtils.getAllPartitionPaths(fs, syncConfig.basePath, syncConfig.assumeDatePartitioning);
+
+        List<String> fsPartitions = FSUtils.getAllPartitionPaths(fs, syncConfig.basePath, syncConfig.assumeDatePartitioning);
+        List<String> tlPartitions = findPartitionsAfter("0");
 
 Review comment:
   > Is there a better way to get the only commit that may be present? lets try to avoid hardcoding `0`
   
   Thanks, let me think about it.

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