Well looks like FastLeaderElection.shutdown() is not invoked. This has been
in 3.3.0. Should have checked on that earlier :-)
On Thu, Apr 29, 2010 at 10:13 AM, Vishal K <vishalm...@gmail.com> wrote:
> Hi Ted,
> We want the application that embeds the ZK server to be running even after
> the ZK server is shutdown. So we don't want to restart the application.
> Also, we prefer not to use zkServer.sh/zkServer.cmd because these are OS
> dependent (our application will run on Win as well as Linux). Instead, we
> thought that calling QuorumPeerMain.initializeAndRun() and
> QuorumPeerMain.shutdown() will suffice to start and shutdown a ZK server and
> we won't have to worry about checking the OS.
> Is there way to cleanly shutdown the ZK server (by invoking ZK server API)
> when it is embedded in the application without actually restarting the
> application process?
> On Thu, Apr 29, 2010 at 1:54 AM, Ted Dunning <ted.dunn...@gmail.com>wrote:
>> Hmmm.... it isn't quite clear what you mean by restart without restarting.
>> Why is killing the server and restarting it not an option?
>> It is common to do a rolling restart on a ZK cluster. Just restart one
>> server at a time. This is often used during system upgrades.
>> On Wed, Apr 28, 2010 at 8:22 PM, Vishal K <vishalm...@gmail.com> wrote:
>> > What is a good way to restart a ZK server (standalone and quorum)
>> > having to restart it?
>> > Currently, I have ZK server embedded in another java application.