danny0405 commented on code in PR #11161:
URL: https://github.com/apache/hudi/pull/11161#discussion_r1591700013


##########
hudi-common/src/main/java/org/apache/hudi/common/table/view/HoodieTableFileSystemView.java:
##########
@@ -307,6 +307,10 @@ void 
removeFileGroupsInPendingClustering(Stream<Pair<HoodieFileGroupId, HoodieIn
    */
   @Override
   Stream<HoodieFileGroup> fetchAllStoredFileGroups(String partition) {
+    if (!isPartitionAvailableInStore(partition)) {

Review Comment:
   We can `partitionToFileGroupsMap.get(partition)` first then decide if it is 
now to eliminate one lookup for the cache.



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