[
https://issues.apache.org/jira/browse/FLINK-10861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16685370#comment-16685370
]
ASF GitHub Bot commented on FLINK-10861:
----------------------------------------
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:
[email protected]
> Kafka e2e test fails during tearing down
> ----------------------------------------
>
> Key: FLINK-10861
> URL: https://issues.apache.org/jira/browse/FLINK-10861
> Project: Flink
> Issue Type: Bug
> Reporter: Piotr Nowojski
> Assignee: Piotr Nowojski
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.8.0
>
>
> {noformat}
> flink-end-to-end-tests/test-scripts/kafka-common.sh: line 92: kill: (610) -
> No such process
> {noformat}
> https://api.travis-ci.org/v3/job/454070232/log.txt
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)