Re: Does ShutdownBroker returns meaningful return code

2013-07-10 Thread Sriram Subramanian
One thing to note is that we do support controlled shutdown as part of the regular shutdown hook in the broker. The wiki was not very clear w.r.t this and I have updated it to convey this. You can turn on controlled shutdown by setting "controlled.shutdown.enable" to true in kafka config. This will

Re: Does ShutdownBroker returns meaningful return code

2013-07-10 Thread Joel Koshy
It's not ideal - right now we use the JMX operation (which returns an empty set on a successful controlled shutdown). If not it returns a set containing the partitions still being led on the broker. We retry (with appropriate intervals) until it succeeds. After that we do a regular broker shutdown

Re: Does ShutdownBroker returns meaningful return code

2013-07-10 Thread Vadim Keylis
Joel. How do you guys do kafka service shutdown and startup? On Wed, Jul 10, 2013 at 5:32 PM, Joel Koshy wrote: > https://cwiki.apache.org/confluence/display/KAFKA/Replication+tools > has more details. The ShutdownBroker tool does not return anything. > i.e., it does not exit with a System.exit

Re: Does ShutdownBroker returns meaningful return code

2013-07-10 Thread Joel Koshy
https://cwiki.apache.org/confluence/display/KAFKA/Replication+tools has more details. The ShutdownBroker tool does not return anything. i.e., it does not exit with a System.exit code to pass back to a shell. it only logs if controlled shutdown was complete or not. You will need to configure the num

Does ShutdownBroker returns meaningful return code

2013-07-10 Thread Vadim Keylis
We have deployed kafka 0.8 beta1. It was my understanding that ShutdownBroker program needs be used to initiate proper shutdown of the server. We are going to use this script in automated fashion. Does the script return meaningful error code that can be capture by calling script and act up on? What