[HUDI-2127] Initialize the maxMemorySizeInBytes in log scanner (#3220)
This commit is contained in:
@@ -79,6 +79,7 @@ public class HoodieMergedLogRecordScanner extends AbstractHoodieLogRecordScanner
|
|||||||
// Store merged records for all versions for this log file, set the in-memory footprint to maxInMemoryMapSize
|
// Store merged records for all versions for this log file, set the in-memory footprint to maxInMemoryMapSize
|
||||||
this.records = new ExternalSpillableMap<>(maxMemorySizeInBytes, spillableMapBasePath, new DefaultSizeEstimator(),
|
this.records = new ExternalSpillableMap<>(maxMemorySizeInBytes, spillableMapBasePath, new DefaultSizeEstimator(),
|
||||||
new HoodieRecordSizeEstimator(readerSchema));
|
new HoodieRecordSizeEstimator(readerSchema));
|
||||||
|
this.maxMemorySizeInBytes = maxMemorySizeInBytes;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new HoodieIOException("IOException when creating ExternalSpillableMap at " + spillableMapBasePath, e);
|
throw new HoodieIOException("IOException when creating ExternalSpillableMap at " + spillableMapBasePath, e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user