pnowojski closed pull request #7084: [FLINK-10861][e2e] Do not fail 
stop_kafka_cluster if a process terminates before we kill it
URL: https://github.com/apache/flink/pull/7084
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

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 dedfe5208b1..f2e40399ae8 100644
--- a/flink-end-to-end-tests/test-scripts/kafka-common.sh
+++ b/flink-end-to-end-tests/test-scripts/kafka-common.sh
@@ -86,14 +86,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
 }
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

Reply via email to