SteNicholas commented on a change in pull request #12516:
URL: https://github.com/apache/flink/pull/12516#discussion_r436526908
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/util/config/memory/jobmanager/JobManagerFlinkMemoryUtils.java
##########
@@ -88,16 +88,16 @@ private static void verifyJvmHeapSize(MemorySize
jvmHeapSize) {
}
}
- private static void verifyJobStoreCacheSize(Configuration config,
MemorySize jvmHeapSize) {
+ private static void verifyJobStoreCacheSize(Configuration config,
MemorySize offHeapMemorySize) {
Review comment:
> This method is correct as the job cache is part of the JVM heap, not
off-heap.
> The problem is that `verifyJobStoreCacheSize` is called with
`offHeapMemory` in `JobManagerFlinkMemoryUtils#createJobManagerFlinkMemory`:
> `verifyJobStoreCacheSize(config, offHeapMemory);`
> which should be:
> `verifyJobStoreCacheSize(config, jvmHeap);` there.
@azagrebin Sorry for previous misunderstanding for the problem. And I have
updated this method.
----------------------------------------------------------------
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]