Skip to content

Commit

Permalink
Fixing closure of file slice readers w/ mdt reader
Browse files Browse the repository at this point in the history
  • Loading branch information
nsivabalan committed Nov 28, 2024
1 parent 5c28762 commit 9970bfa
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,10 @@ private Map<String, List<HoodieRecord<HoodieMetadataPayload>>> lookupAllKeysFrom
return readFromBaseAndMergeWithAllLogRecords(baseFileReader, sortedKeys, true, logRecords, timings, partitionName);
} catch (IOException ioe) {
throw new HoodieIOException("Error merging records from metadata table for " + keys.size() + " key : ", ioe);
} finally {
if (!reuse) {
closeReader(readers);
}
}
}

Expand Down

0 comments on commit 9970bfa

Please sign in to comment.