nsivabalan commented on code in PR #9299:
URL: https://github.com/apache/hudi/pull/9299#discussion_r1276796501


##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadata.java:
##########
@@ -305,6 +305,10 @@ private Map<String, HoodieRecord<HoodieMetadataPayload>> 
lookupKeysFromFileSlice
       return readFromBaseAndMergeWithLogRecords(baseFileReader, sortedKeys, 
fullKeys, logRecords, timings, partitionName);
     } catch (IOException ioe) {
       throw new HoodieIOException("Error merging records from metadata table 
for  " + keys.size() + " key : ", ioe);
+    } finally {

Review Comment:
   should we move this to getRecordsByKeys and getRecordsByKeyPrefixes since 
thats where we call
   ```
   partitionFileSliceMap.computeIfAbsent(partitionName,
           k -> 
HoodieTableMetadataUtil.getPartitionLatestMergedFileSlices(metadataMetaClient, 
metadataFileSystemView, partitionName));
   ``` 



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