1
0

[HUDI-2715] The BitCaskDiskMap iterator may cause memory leak (#3951)

This commit is contained in:
Danny Chan
2021-11-09 15:40:00 +08:00
committed by GitHub
parent 6d109c6de5
commit e057a10499
5 changed files with 47 additions and 11 deletions

View File

@@ -22,6 +22,7 @@ import org.apache.hudi.common.model.HoodieOperation;
import org.apache.hudi.common.model.HoodieRecord;
import org.apache.hudi.common.table.log.HoodieMergedLogRecordScanner;
import org.apache.hudi.common.table.log.InstantRange;
import org.apache.hudi.common.util.ClosableIterator;
import org.apache.hudi.common.util.Option;
import org.apache.hudi.configuration.FlinkOptions;
import org.apache.hudi.exception.HoodieException;
@@ -447,12 +448,6 @@ public class MergeOnReadInputFormat
// -------------------------------------------------------------------------
// Inner Class
// -------------------------------------------------------------------------
private interface ClosableIterator<E> extends Iterator<E>, AutoCloseable {
@Override
void close(); // override to not throw exception
}
private interface RecordIterator {
boolean reachedEnd() throws IOException;