You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/02/25 16:05:46 UTC

[GitHub] [flink] PengTaoWW commented on a change in pull request #10890: [FLINK-15198][Deployment / Mesos] remove mesos.resourcemanager.tasks.mem

PengTaoWW commented on a change in pull request #10890: [FLINK-15198][Deployment / Mesos] remove mesos.resourcemanager.tasks.mem
URL: https://github.com/apache/flink/pull/10890#discussion_r383976978
 
 

 ##########
 File path: flink-mesos/src/main/java/org/apache/flink/mesos/runtime/clusterframework/MesosTaskManagerParameters.java
 ##########
 @@ -429,26 +418,15 @@ private static double getCpuCores(final Configuration configuration) {
 	}
 
 	private static MemorySize getTotalProcessMemory(final Configuration configuration) {
-		MemorySize legacyTotalProcessMemory = MemorySize.parse(configuration.getInteger(MESOS_RM_TASKS_MEMORY_MB) + "m");
 		MemorySize unifiedTotalProcessMemory = configuration.get(TaskManagerOptions.TOTAL_PROCESS_MEMORY);
 
-		if (configuration.contains(MESOS_RM_TASKS_MEMORY_MB) &&
-			configuration.contains(TaskManagerOptions.TOTAL_PROCESS_MEMORY) &&
-			!legacyTotalProcessMemory.equals(unifiedTotalProcessMemory)) {
+		if (!configuration.contains(TaskManagerOptions.TOTAL_PROCESS_MEMORY)) {
 
 Review comment:
   I will remove .withTotalProcessMemory (totalProcessMemory) in createContaineredTaskManagerParameters and delete the getTotalProcessMemory 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:
users@infra.apache.org


With regards,
Apache Git Services