New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KAFKA-4931: stop script fails due 4096 ps output limit #3396
base: trunk
Are you sure you want to change the base?
Conversation
This also fixes KAFKA-4389 and KAFKA-4297, which were exactly the same issue but for kafka-server-stop.sh.
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
AFAIK, jps tool is not available on IBM Java. not sure, if we can use this approach. |
I pushed a change so we use |
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
LGTM |
If multiple Kafka brokers are running in the same machine, which one will it stop ? Existing script using |
@kamal15 it will kill all of them. Wdym "now it does nothing"? |
No, it won't kill any server. Since the grep output is empty. |
@kamal15 which grep output (the jps or ps one?) and if the jps one what jre/jdk are you using? |
Assume that multiple brokers are running in different ports in a machine. Earlier, on invoking Now with your changes, |
@kamal15 but in environments where the 4096 limit was not hit the original script would have killed all the servers. So in that respect this patch doesn't change anything: The stop script still kills all the applicable server processes. There's a separate JIRA about this https://issues.apache.org/jira/browse/KAFKA-4110 |
Ok then. I'm un-aware of the Jira. |
This also fixes KAFKA-4389 and KAFKA-4297, which were exactly the same
issue but for kafka-server-stop.sh.