We have embedded ZK server in our application. We start a thread in our
application and call QuorumPeerMain.InitializeArgs().
When cleaning-up ZK we call QuorumPeerMain.shutdown() and wait for the
thread that is calling InitializeArgs() to finish. These two steps are
taking around 60 seconds. I could probably not wait for InitializeArgs() to
finish and that might speed up things.
However, I am not sure why the cleanup should take such a long time. Can
anyone comment on this?