nsivabalan commented on a change in pull request #4206:
URL: https://github.com/apache/hudi/pull/4206#discussion_r762186377



##########
File path: 
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java
##########
@@ -352,7 +352,7 @@ public static int mapRecordKeyToFileGroupIndex(String 
recordKey, int numFileGrou
     }
 
     HoodieTableFileSystemView fsView = new 
HoodieTableFileSystemView(metaClient, timeline);
-    return fsView.getLatestFileSlices(partition).sorted((s1, s2) -> 
s1.getFileId().compareTo(s2.getFileId()))
+    return fsView.getLatestUnCompactedFileSlices(partition).sorted((s1, s2) -> 
s1.getFileId().compareTo(s2.getFileId()))

Review comment:
       should be. even today, with bootstrap delta commit in metadata table, we 
have one log file in the first file slice and there is no pending compaction 
for the latest file slice. 




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