Skip to content

Commit

Permalink
[FLINK-18639][scripts] Print raw output from BashJavaUtils in case of…
Browse files Browse the repository at this point in the history
… execution failure.

This closes apache#12933.
  • Loading branch information
xintongsong committed Jul 20, 2020
1 parent f990fa5 commit 7adbbd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flink-dist/src/main/flink-bin/bin/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,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

Expand Down
2 changes: 2 additions & 0 deletions flink-dist/src/main/flink-bin/bin/taskmanager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7adbbd3

Please sign in to comment.