[
https://issues.apache.org/jira/browse/KAFKA-10390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luke Chen reassigned KAFKA-10390:
---------------------------------
Assignee: Luke Chen
> 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
> Assignee: Luke Chen
> Priority: Minor
>
> 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)