tillrohrmann commented on a change in pull request #11764:
URL: https://github.com/apache/flink/pull/11764#discussion_r411524217



##########
File path: flink-dist/src/main/flink-bin/bin/config.sh
##########
@@ -644,10 +644,16 @@ extractExecutionParams() {
     local execution_config=$1
     local EXECUTION_PREFIX="BASH_JAVA_UTILS_EXEC_RESULT:"
 
-    if ! [[ $execution_config =~ ^${EXECUTION_PREFIX}.* ]]; then
+    local num_lines=$(echo "$execution_config" | wc -l)
+    if ! [[ ${num_lines} == 1 ]]; then
+        echo "[ERROR] Unexpected result ($num_lines lines): $execution_config" 
1>&2
+        echo "[ERROR] extractExecutionParams only accepts exactly one line as 
the input" 1>&2
+        exit 1
+    fi

Review comment:
       I think the problem is that we don't do proper trimming.




----------------------------------------------------------------
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


Reply via email to