lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Woodward (JIRA)" <>
Subject [jira] [Commented] (SOLR-9659) Add zookeeper DataWatch API
Date Tue, 18 Oct 2016 17:20:58 GMT


Alan Woodward commented on SOLR-9659:

I started out by looking at Curator, but this API ended up being at a higher level.  Here,
clients don't need to care at all about Watcher objects, or ZK exceptions, or anything like
that.  Instead, you just say "I'm interesting in path x/y/z - when the data there changes,
call me with the new contents"; or "I'm interested in the children of path z/q - when the
child list changes, call me with the new list".

> Add zookeeper DataWatch API
> ---------------------------
>                 Key: SOLR-9659
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>         Attachments: SOLR-9659.patch
> We have several components which need to set up watches on ZooKeeper nodes for various
aspects of cluster management.  At the moment, all of these components do this themselves,
leading to large amounts of duplicated code, and complicated logic for dealing with reconnections,
etc, scattered across the codebase.  We should replace this with a simple API controlled by
SolrZkClient, which should make the code more robust, and testing considerably easier.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message