hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Groschupf ...@101tec.com>
Subject exist return true before event comes in
Date Tue, 04 Aug 2009 02:30:45 GMT
Hi,

I'm running into following problem writing a fasade for Zk Client (http://github.com/joa23/zkclient/

)

1.) Subscribe a watch via exist(path, true) for a path.
2.) Create a persistent node.
3.) Call exist and it returns true
4.) Zookeeper sends a NodeCreated event.


I would expect that the client would get the NodeCreated event before  
exist returns true.
Does anyone has a idea of a pattern that secures that exist return  
false, before the event is triggered?
Thanks,
Stefan


Mime
View raw message