Down the reader mem check
This commit is contained in:
@@ -325,10 +325,10 @@ public class StreamWriteFunction<I> extends AbstractStreamWriteFunction<I> {
|
||||
private final double maxBufferSize;
|
||||
|
||||
TotalSizeTracer(Configuration conf) {
|
||||
long mergeReaderMem = 100; // constant 100MB
|
||||
long mergeReaderMem = 10; // constant 100MB
|
||||
long mergeMapMaxMem = conf.getInteger(FlinkOptions.WRITE_MERGE_MAX_MEMORY);
|
||||
this.maxBufferSize = (conf.getDouble(FlinkOptions.WRITE_TASK_MAX_SIZE) - mergeReaderMem - mergeMapMaxMem) * 1024 * 1024;
|
||||
final String errMsg = String.format("'%s' should be at least greater than '%s' plus merge reader memory(constant 100MB now)",
|
||||
final String errMsg = String.format("'%s' should be at least greater than '%s' plus merge reader memory(constant 50MB now)",
|
||||
FlinkOptions.WRITE_TASK_MAX_SIZE.key(), FlinkOptions.WRITE_MERGE_MAX_MEMORY.key());
|
||||
ValidationUtils.checkState(this.maxBufferSize > 0, errMsg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user