chunweilei commented on a change in pull request #8266: [FLINK-9904]Allow users 
to control MaxDirectMemorySize
URL: https://github.com/apache/flink/pull/8266#discussion_r282333076
 
 

 ##########
 File path: flink-dist/src/main/flink-bin/bin/config.sh
 ##########
 @@ -429,6 +430,11 @@ if [ -z "${FLINK_TM_NET_BUF_MAX}" -o 
"${FLINK_TM_NET_BUF_MAX}" = "-1" ]; then
     FLINK_TM_NET_BUF_MAX=$(parseBytes ${FLINK_TM_NET_BUF_MAX})
 fi
 
+# Define FLINK_TM_MAX_OFFHEAP_SIZE if it is not already set
+if [ -z "${FLINK_TM_MAX_OFFHEAP_SIZE}" ]; then
+    # default: Long.MAX_VALUE in TB
+    FLINK_TM_MAX_OFFHEAP_SIZE=$(readFromConfig ${KEY_TASKM_MAX_OFFHEAP_SIZE} 
"8388607T" "${YAML_CONF}")
 
 Review comment:
   Maybe it is set to -1 by user incorrectly. You can find other configurations 
like `FLINK_TM_NET_BUF_MAX` use this condition too.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to