Vineet Menon
unread,Apr 23, 2013, 1:03:20 AM4/23/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to curato...@googlegroups.com
I am trying to simulate the crashing of nodes in zookeeper with curator.
I have modified the example program with LeaderSelector and LeaderSelectorListener for incorporating seperate individual programs which act as peers.
1. When I Cnrt + C the Java program, the next node takes considerable time about 30 s for the next peer to become leader. I have checked with the zookeeper for the nodes available and have noticed that the ephemeral znodes are alive even after the process is crashed.
I have attached the program codes with this post. AM I doing anything wrong with the code? or I should simulate the crash some way other than that?
2. When the leader actually relinquishes the leadership, by actually terminating itself, the switching over is quite smooth and fast.
What is happening here? What am I doing wrong?