You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by xt...@apache.org on 2020/07/20 09:42:56 UTC
[flink] branch release-1.11 updated: [FLINK-18639][scripts] Print
raw output from BashJavaUtils in case of execution failure.
This is an automated email from the ASF dual-hosted git repository.
xtsong pushed a commit to branch release-1.11
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.11 by this push:
new 85e66e8 [FLINK-18639][scripts] Print raw output from BashJavaUtils in case of execution failure.
85e66e8 is described below
commit 85e66e856d11151da61ef5677941c99809c01f4c
Author: Xintong Song <to...@gmail.com>
AuthorDate: Mon Jul 20 13:57:03 2020 +0800
[FLINK-18639][scripts] Print raw output from BashJavaUtils in case of execution failure.
This closes #12933.
---
flink-dist/src/main/flink-bin/bin/config.sh | 2 ++
flink-dist/src/main/flink-bin/bin/taskmanager.sh | 2 ++
2 files changed, 4 insertions(+)
diff --git a/flink-dist/src/main/flink-bin/bin/config.sh b/flink-dist/src/main/flink-bin/bin/config.sh
index 99ef7c0..50b78a5 100755
--- a/flink-dist/src/main/flink-bin/bin/config.sh
+++ b/flink-dist/src/main/flink-bin/bin/config.sh
@@ -529,6 +529,8 @@ parseJmJvmArgsAndExportLogs() {
if [[ $? -ne 0 ]]; then
echo "[ERROR] Could not get JVM parameters and dynamic configurations properly."
+ echo "[ERROR] Raw output from BashJavaUtils:"
+ echo "$java_utils_output"
exit 1
fi
diff --git a/flink-dist/src/main/flink-bin/bin/taskmanager.sh b/flink-dist/src/main/flink-bin/bin/taskmanager.sh
index 6c95326..4d0b72f 100755
--- a/flink-dist/src/main/flink-bin/bin/taskmanager.sh
+++ b/flink-dist/src/main/flink-bin/bin/taskmanager.sh
@@ -55,6 +55,8 @@ if [[ $STARTSTOP == "start" ]] || [[ $STARTSTOP == "start-foreground" ]]; then
if [[ $? -ne 0 ]]; then
echo "[ERROR] Could not get JVM parameters and dynamic configurations properly."
+ echo "[ERROR] Raw output from BashJavaUtils:"
+ echo "$java_utils_output"
exit 1
fi