xintongsong commented on a change in pull request #10161:
[FLINK-13986][runtime] Clean up legacy code for FLIP-49.
URL: https://github.com/apache/flink/pull/10161#discussion_r347875182
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/ResourceManager.java
##########
@@ -1207,7 +1207,7 @@ protected int getNumberRequiredTaskManagerSlots() {
public static Collection<ResourceProfile>
createWorkerSlotProfiles(Configuration config) {
final int numSlots =
config.getInteger(TaskManagerOptions.NUM_TASK_SLOTS);
- final long managedMemoryBytes =
MemorySize.parse(config.getString(TaskManagerOptions.LEGACY_MANAGED_MEMORY_SIZE)).getBytes();
+ final long managedMemoryBytes =
MemorySize.parse(config.getString(TaskManagerOptions.MANAGED_MEMORY_SIZE,
"0b")).getBytes();
Review comment:
The reason we need this hack is because the blink operators do not support
separated on-heap/off-heap managed memory atm (see
`NodeResourceUtil#fromManagedMem`). If we set both memory types, then blink
jobs can immediately fail under off-heap managed memory setups.
----------------------------------------------------------------
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