This is an automated email from the ASF dual-hosted git repository.

pnowojski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/master by this push:
     new 9f8df97  [FLINK-10861]][e2e] Do not fail stop_kafka_cluster if a 
process terminates before we kill it
9f8df97 is described below

commit 9f8df973cacef13f6148d345112b7db98d02889d
Author: Piotr Nowojski <piotr.nowoj...@gmail.com>
AuthorDate: Tue Nov 13 11:24:35 2018 +0100

    [FLINK-10861]][e2e] Do not fail stop_kafka_cluster if a process terminates 
before we kill it
---
 flink-end-to-end-tests/test-scripts/kafka-common.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/flink-end-to-end-tests/test-scripts/kafka-common.sh 
b/flink-end-to-end-tests/test-scripts/kafka-common.sh
index 5f8f65e..7c31534 100644
--- a/flink-end-to-end-tests/test-scripts/kafka-common.sh
+++ b/flink-end-to-end-tests/test-scripts/kafka-common.sh
@@ -82,14 +82,14 @@ function stop_kafka_cluster {
   PIDS=$(jps -vl | grep -i 'kafka\.Kafka' | grep java | grep -v grep | awk 
'{print $1}'|| echo "")
 
   if [ ! -z "$PIDS" ]; then
-    kill -s TERM $PIDS
+    kill -s TERM $PIDS || true
   fi
 
   # Terminate QuorumPeerMain process if it still exists
   PIDS=$(jps -vl | grep java | grep -i QuorumPeerMain | grep -v grep | awk 
'{print $1}'|| echo "")
 
   if [ ! -z "$PIDS" ]; then
-    kill -s TERM $PIDS
+    kill -s TERM $PIDS || true
   fi
 }
 

Reply via email to