tillrohrmann commented on a change in pull request #10921: [FLINK-15692][state
backend] Enable limiting RocksDB memory consumption by default
URL: https://github.com/apache/flink/pull/10921#discussion_r369580682
##########
File path:
flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamMockEnvironment.java
##########
@@ -158,7 +159,7 @@ public StreamMockEnvironment(
this.taskConfiguration = taskConfig;
this.inputs = new LinkedList<InputGate>();
this.outputs = new LinkedList<ResultPartitionWriter>();
- this.memManager =
MemoryManagerBuilder.newBuilder().setMemorySize(memorySize).build();
+ this.memManager =
MemoryManagerBuilder.newBuilder().setMemorySize(MemoryType.OFF_HEAP,
memorySize).build();
Review comment:
```suggestion
this.memManager =
MemoryManagerBuilder.newBuilder().setMemorySize(MemoryType.OFF_HEAP,
offHeapMemorySize).build();
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services