hudi-bot opened a new issue, #16678:
URL: https://github.com/apache/hudi/issues/16678

   There are methods of the same functionality in DataSourceTestUtils, using 
FileSystem or HoodieStorage instance.  Once we get rid of relevant FileSystem 
usage, we should keep one of them only.
   {code:java}
   public static String latestCommitCompletionTime(FileSystem fs, String 
basePath) {
     HoodieTimeline timeline = 
HoodieDataSourceHelpers.allCompletedCommitsCompactions(fs, basePath);
     return timeline.getInstantsAsStream()
         .map(HoodieInstant::getCompletionTime)
         .filter(Objects::nonNull)
         .max(String::compareTo)
         .orElse(null);
   }
   
   public static String latestCommitCompletionTime(HoodieStorage storage, 
String basePath) {
     HoodieTimeline timeline = 
HoodieDataSourceHelpers.allCompletedCommitsCompactions(storage, basePath);
     return timeline.getInstantsAsStream()
         .map(HoodieInstant::getCompletionTime)
         .filter(Objects::nonNull)
         .max(String::compareTo)
         .orElse(null);
   } {code}
   
   ## JIRA info
   
   - Link: https://issues.apache.org/jira/browse/HUDI-8372
   - Type: Improvement
   - Fix version(s):
     - 1.1.0


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to