You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by uc...@apache.org on 2016/06/21 13:08:41 UTC

flink git commit: [FLINK-4038] [dist] Escape JVM arguments in TaskManager startup script

Repository: flink
Updated Branches:
  refs/heads/release-1.0 3163638a6 -> e208325ef


[FLINK-4038] [dist] Escape JVM arguments in TaskManager startup script


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/e208325e
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/e208325e
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/e208325e

Branch: refs/heads/release-1.0
Commit: e208325ef245cd2ab8f88cc1c83cbecfce1603d7
Parents: 3163638
Author: Ufuk Celebi <uc...@apache.org>
Authored: Tue Jun 21 15:00:20 2016 +0200
Committer: Ufuk Celebi <uc...@apache.org>
Committed: Tue Jun 21 15:01:33 2016 +0200

----------------------------------------------------------------------
 flink-dist/src/main/flink-bin/bin/taskmanager.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/e208325e/flink-dist/src/main/flink-bin/bin/taskmanager.sh
----------------------------------------------------------------------
diff --git a/flink-dist/src/main/flink-bin/bin/taskmanager.sh b/flink-dist/src/main/flink-bin/bin/taskmanager.sh
index 87860e8..a36757c 100755
--- a/flink-dist/src/main/flink-bin/bin/taskmanager.sh
+++ b/flink-dist/src/main/flink-bin/bin/taskmanager.sh
@@ -31,7 +31,7 @@ if [[ $STARTSTOP == "start" ]]; then
 
     # if memory allocation mode is lazy and no other JVM options are set,
     # set the 'Concurrent Mark Sweep GC'
-    if [[ $FLINK_TM_MEM_PRE_ALLOCATE == "false" ]] && [ -z $FLINK_ENV_JAVA_OPTS ]; then
+    if [[ $FLINK_TM_MEM_PRE_ALLOCATE == "false" ]] && [ -z "${FLINK_ENV_JAVA_OPTS}" ]; then
 
         JAVA_VERSION=$($JAVA_RUN -version 2>&1 | sed 's/.*version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q')