Can you write a test that shows this? It doesn’t seem possible given your 
description. Have a look at SharedValue.start(). Note that it catches 
NodeExistsException.

-JZ



On August 31, 2015 at 12:06:30 PM, Daniel Kashtan ([email protected]) wrote:

I inherited some Curator code that creates a Shared Value recipe in two 
different parts of my code, using the same path. Once the second Shared Value 
has .start() called, the NodeExistsException from the Zookeeper server is 
created in the logs. 

I am not sure how to handle this issue. Can I retrieve the Shared Value 
instance from Curator instead of trying to create a second new instance of the 
Shared Value on the same path?

--
-Daniel

Reply via email to