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-3559] [dist] Don't print INFO if no active process
Date Tue, 01 Mar 2016 14:33:02 GMT
Repository: flink
Updated Branches:
  refs/heads/release-1.0 6262a0edd -> 2d56081e2


[FLINK-3559] [dist] Don't print INFO if no active process

This closes #1751.


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

Branch: refs/heads/release-1.0
Commit: 2d56081e29996f3f83e1a882151c06e44233d38f
Parents: 6262a0e
Author: Ufuk Celebi <uce@apache.org>
Authored: Tue Mar 1 14:58:01 2016 +0100
Committer: Ufuk Celebi <uce@apache.org>
Committed: Tue Mar 1 15:32:53 2016 +0100

----------------------------------------------------------------------
 flink-dist/src/main/flink-bin/bin/flink-daemon.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/2d56081e/flink-dist/src/main/flink-bin/bin/flink-daemon.sh
----------------------------------------------------------------------
diff --git a/flink-dist/src/main/flink-bin/bin/flink-daemon.sh b/flink-dist/src/main/flink-bin/bin/flink-daemon.sh
index 2388ba7..1ef7439 100644
--- a/flink-dist/src/main/flink-bin/bin/flink-daemon.sh
+++ b/flink-dist/src/main/flink-bin/bin/flink-daemon.sh
@@ -94,7 +94,10 @@ case $STARTSTOP in
           done < "${pid}"
 
           count="${#active[@]}"
-          echo "[INFO] $count instance(s) of $DAEMON are already running on $HOSTNAME."
+
+          if [ ${count} -gt 0 ]; then
+            echo "[INFO] $count instance(s) of $DAEMON are already running on $HOSTNAME."
+          fi
         fi
 
         echo "Starting $DAEMON daemon on host $HOSTNAME."


Mime
View raw message