LeaderLatch is one time use. Try LeaderSelector instead. -JZ
From: [email protected] [email protected] Reply: [email protected] [email protected] Date: May 13, 2014 at 10:46:46 AM To: [email protected] [email protected] Subject: Giving up leadership I am using the curator leadership recipe. So far is it working well, assigning leadership as I expect. However I now want to round robin the leadership between all nodes in my leadership election. I first tried doing this by closing the latch, waiting until the latch was in a closed state, and calling the latch's start() method. This failed with an IllegalStateException (cannot be started more than once.) I am now going through the process of stopping the latch, and recreating it from scratch. This seems like a lot of work. Is there a better way to get a node to give up leadership besides this method? --Steve
