Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # user >> lost ZK events across datacenters

Copy link to this message
Re: lost ZK events across datacenters
The most important feature that I rely zkclient on is to hide
zkConnectionLoss exception (just block and retry when connection is in sync
mode again). I assume that quite a few applications want something like
that. Does it make sense for ZK to provide such functionality directly,
instead of everyone implementing their own stuff?



On Wed, Jun 1, 2011 at 1:18 PM, Ted Dunning <[EMAIL PROTECTED]> wrote:

> I am generally a bit skeptical of attempts to "simplify" the ZK API while
> claiming to retain or improve reliability and availability.  I haven't
> looked at zkclient for a long time, but I was dubious at one time.
> For a counter example, kept collections simplifies the API by presenting
> virtual collections, but they explicitly warn that this loses some
> information.
> On Wed, Jun 1, 2011 at 1:08 PM, Jun Rao <[EMAIL PROTECTED]> wrote:
> > I am using the zkclient package (
> > https://github.com/sgroschupf/zkclient.git).
> > The watcher code seems reasonable. Basically, each watcher event is first
> > added to a queue. A separate event thread dequeues each event and reads
> the
> > children of a path (which re-registers the watcher) and invokes the
> > registered listener.
> >
> > Anybody knows any issues in zkclient?
> >