You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Lucas Bradstreet (Jira)" <ji...@apache.org> on 2020/08/11 22:50:00 UTC
[jira] [Created] (KAFKA-10390) kafka-server-stop lookup is not
specific enough and may kill other processes
Lucas Bradstreet created KAFKA-10390:
----------------------------------------
Summary: kafka-server-stop lookup is not specific enough and may kill other processes
Key: KAFKA-10390
URL: https://issues.apache.org/jira/browse/KAFKA-10390
Project: Kafka
Issue Type: Bug
Components: core
Reporter: Lucas Bradstreet
kafka-server-stop.sh picks out kafka processes by:
{noformat}
PIDS=$(ps ax | grep -i 'kafka\.Kafka' | grep java | grep -v grep | awk '{print $1}'){noformat}
This is not specific enough and may match unintended processes, e.g. one that even includes dependencies including *.kafka.kafka.*
**A better match would be:
{noformat}
PIDS=$(ps ax | grep ' kafka\.Kafka ' | grep java | grep -v grep | awk '{print $1}')
{noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)