flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject flink git commit: [FLINK-4038] [dist] Escape JVM arguments in TaskManager startup script
Date Tue, 21 Jun 2016 13:09:13 GMT
Repository: flink
Updated Branches:
  refs/heads/master a4d35d7c3 -> bc427d502


[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/bc427d50
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/bc427d50
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/bc427d50

Branch: refs/heads/master
Commit: bc427d50271b2760aac374e020dab331e8df4c3d
Parents: a4d35d7
Author: Ufuk Celebi <uce@apache.org>
Authored: Tue Jun 21 15:00:20 2016 +0200
Committer: Ufuk Celebi <uce@apache.org>
Committed: Tue Jun 21 15:00:20 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/bc427d50/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 14adcaf..62847be 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')
 


Mime
View raw message