codope commented on code in PR #11737:
URL: https://github.com/apache/hudi/pull/11737#discussion_r1708641354


##########
hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/client/TestCompactionAdminClient.java:
##########
@@ -283,7 +282,7 @@ private List<Pair<HoodieLogFile, HoodieLogFile>> 
validateUnSchedulePlan(Compacti
 
     // Ensure same number of log-files before and after renaming per fileId
     Map<String, Long> fileIdToCountsAfterRenaming =
-        
newFsView.getAllFileGroups(HoodieTestUtils.DEFAULT_PARTITION_PATHS[0]).flatMap(HoodieFileGroup::getAllFileSlices)
+        
newFsView.getLatestMergedFileSlicesBeforeOrOn(HoodieTestUtils.DEFAULT_PARTITION_PATHS[0],
 ingestionInstant)
             .filter(fs -> fs.getBaseInstantTime().equals(ingestionInstant))

Review Comment:
   yes, i'll update the test. The main fix here is in `HoodieFileGroup`



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