Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The proposed change include adding an extra optional field "process-role", which specify the specific process the user want to kill, i.e, controller/broker. For example, the new command line to kill broker only will look like:

...

When a process-role field is not provided, the command line killed both controllers and brokers.

...

I'm changing the "kafka-server-stop.sh" file to accept an optional field, process role. When the user specify a process role, I will retrieve the absolute path to the configuration file, and search for the value of "process role.roles". If the "process role .roles" from the configuration file matches the process role the user provided, that process will be killed, otherwise it will be skipped.

...

Existing users won't need to change any behavior if they want to continue killing both controller/broker processes. Otherwise, if they want to kill either the broker /or controller, they'll need to provide specify a "process-role" field in the script language. 

Test Plan

The change can be tested through command line. 

...