Re: ZooKeeper Roadmap - 3.1.0 and beyond.

2008-11-05 Thread Adam Rosien
If someone could deploy a build to a public maven repository it would really help zk client development and adoption when integrating with external maven-ized projects, since adding such a dependency is trivial in maven. .. Adam On Wed, Nov 5, 2008 at 12:28 PM, Patrick Hunt <[EMAIL PROTECTED]> wr

Re: Sending data during NodeDataChanged or NodeCreated

2009-01-07 Thread Adam Rosien
On Wed, Jan 7, 2009 at 12:46 PM, Kevin Burton wrote: > On Wed, Jan 7, 2009 at 9:25 AM, Benjamin Reed wrote: > >> This is the behavior we had when we first implemented the API, and in every >> case where people used the information there was a bug. it is virtually >> impossible to use correctly. I

Re: Updated NodeWatcher...

2009-01-08 Thread Adam Rosien
It feels like we need a flowchart, state-chart, or something, so we can all talk about the same thing. Then people could suggest abstractions that would essentially put a box around sections of the diagram. However I feel woefully inadequate at the former :(. .. Adam On Thu, Jan 8, 2009 at 4:20 P

Re: Updated NodeWatcher...

2009-01-09 Thread Adam Rosien
t; From: adam.ros...@gmail.com [mailto:adam.ros...@gmail.com] On Behalf Of Adam > Rosien > Sent: Thursday, January 08, 2009 8:06 PM > To: zookeeper-user@hadoop.apache.org > Subject: Re: Updated NodeWatcher... > > It feels like we need a flowchart, state-chart, or something, so

Re: Standard redistributable set of primitives?

2009-01-17 Thread Adam Rosien
Re: ZOOKEEPER-80: (I'm waiting for my password reset to the ASF JIRA so I thought I'd comment here in the mean time...) Maven has a nice directory layout structure that takes into account multiple languages, e.g., src/main/java, src/main/c, etc. I really dislike the terms recipes and contrib for

blog post about zk and group membership

2010-01-09 Thread Adam Rosien
I've written a blog post about using ZooKeeper for group membership at KaChing: http://bit.ly/6yraP6 http://eng.kaching.com/2010/01/actually-implementing-group-management.html Any comments or feedback is welcome. .. Adam

Re: blog post about zk and group membership

2010-01-11 Thread Adam Rosien
the design choices > they made (which were fine, just not well documented and therefor easy for > users to miss). In particular (again, at the time, may be addressed by now) > watch notifications could be lost during disconnected/expired sessions, and > the user would not be made aware

Re: blog post about zk and group membership

2010-01-11 Thread Adam Rosien
ot;) would help solve. That too can be a black hole :(. I need more practical experience to find the right balance. .. Adam On Mon, Jan 11, 2010 at 10:20 AM, Patrick Hunt wrote: > Adam Rosien wrote: >> >> Re "off the shelf", my title of "Actually Implementing"

Re: blog post about zk and group membership

2010-01-11 Thread Adam Rosien
user would not be made aware of this. > > 3) excellent point/suggestion on the "rogue" service > > Patrick > > Adam Rosien wrote: >> >> I've written a blog post about using ZooKeeper for group membership at >> KaChing: >> >> http://bit.ly/6yraP6 >> http://eng.kaching.com/2010/01/actually-implementing-group-management.html >> >> Any comments or feedback is welcome. >> >> .. Adam >

Re: Killing a zookeeper server

2010-01-12 Thread Adam Rosien
I have a related question: what's the behavior of a cluster of 3 when one is down? I've tried it and a leader is elected, but are there any other caveats for this situation? .. Adam On Tue, Jan 12, 2010 at 2:40 PM, Patrick Hunt wrote: > 12 servers? That's alot, if you dont' mind my asking why so

Re: Killing a zookeeper server

2010-01-12 Thread Adam Rosien
to keep going. In general, if fewer than half your > nodes have failed, ZK will keep on keeping on. > > The main concern with a cluster of 2/3 machines is that a single further > failure will bring down the whole cluster. > > Henry > > 2010/1/12 Adam Rosien > >> I

Re: Killing a zookeeper server

2010-01-13 Thread Adam Rosien
On a related note, it was initially confusing to me that the server returned 'imok' when it wasn't part of the quorum. I realize the internal checks are probably in separate areas of the code, but if others feel similarly I could file an improvement in JIRA. .. Adam On Wed, Jan 13, 2010 at 11:19

Re: Killing a zookeeper server

2010-01-13 Thread Adam Rosien
ying the servers werent able to elect a leader? > > mahadev > > > On 1/13/10 11:52 AM, "Adam Rosien" wrote: > >> On a related note, it was initially confusing to me that the server >> returned 'imok' when it wasn't part of the quorum. I re

bug: wrong heading in recipes doc

2010-04-22 Thread Adam Rosien
http://hadoop.apache.org/zookeeper/docs/r3.3.0/recipes.html#sc_recoverableSharedLocks uses the heading "recoverable" locks, but the text refers to "revocable". .. Adam

Re: bug: wrong heading in recipes doc

2010-04-22 Thread Adam Rosien
of issue. Thanks! > https://issues.apache.org/jira/browse/ZOOKEEPER > > Patrick > > On 04/22/2010 11:30 AM, Adam Rosien wrote: >> >> >> http://hadoop.apache.org/zookeeper/docs/r3.3.0/recipes.html#sc_recoverableSharedLocks >> uses the heading "recoverable" locks, but the text refers to >> "revocable". >> >> .. Adam >

Re: bug: wrong heading in recipes doc

2010-04-22 Thread Adam Rosien
I got in actually. I'll file the issue. Grr. On Thu, Apr 22, 2010 at 1:26 PM, Adam Rosien wrote: > I would, but the Apache JIRA has been f***ed since the breakin and I > can't reset my password. Would you mind adding it for me? > > .. Adam > > On Thu, Apr 22, 20

Re: bug: wrong heading in recipes doc

2010-04-22 Thread Adam Rosien
Created https://issues.apache.org/jira/browse/ZOOKEEPER-751 On Thu, Apr 22, 2010 at 1:33 PM, Adam Rosien wrote: > I got in actually. I'll file the issue. Grr. > > On Thu, Apr 22, 2010 at 1:26 PM, Adam Rosien wrote: >> I would, but the Apache JIRA has been f***ed since the br

Re: bug: wrong heading in recipes doc

2010-04-22 Thread Adam Rosien
gt; On 4/22/10 1:37 PM, "Patrick Hunt" wrote: > >> No problem. >> https://issues.apache.org/jira/browse/ZOOKEEPER-752 >> >> I've seen alot of traffic on infrastruct...@apache, you might try there, >> I'm sure they could help you out. >> >

Re: bug: wrong heading in recipes doc

2010-04-22 Thread Adam Rosien
My sequence number is lower. Do I win? :) On Thu, Apr 22, 2010 at 4:44 PM, Adam Rosien wrote: > Good one! I'm the only one in my office who regularly makes zk jokes. > > On Thu, Apr 22, 2010 at 1:40 PM, Mahadev Konar wrote: >> I think we should be using zookeeper l

Re: ZKClient

2010-05-04 Thread Adam Rosien
I use zkclient in my work at kaChing and I have mixed feelings about it. On one hand it makes "easy things easy" which is great, but on the other hand I very few ideas what assumptions it makes "under the hood". I also dislike some of the design choices such as unchecked exceptions, but that's neit

Re: ZKClient

2010-05-04 Thread Adam Rosien
rt of well documented contrib module which lays out the > assumptions/design of it. It could very well be useful for others. Its just > that folks havent had much time to focus on these areas as yet. > > Thanks > mahadev > > > On 5/4/10 2:58 PM, "Adam Rosien" wrot

Re: GSoC 2010: ZooKeeper Failure Detector Module

2010-05-05 Thread Adam Rosien
Hi Abmar, cool project! I wrote an implementation of the Phi Accrual Detector which I would be happy to donate. It has the nice property that its parameters are based on expectation odds rather than something more arbitrary like # retries. You can steal it at http://github.com/arosien/failure. It

Re: ZkClient package

2010-07-13 Thread Adam Rosien
I use it at my job at kaChing. Generally it is just fine for the job, doing what you'd expect. My criticisms are that it is very thin on documentation (javadoc), which may have been improved, and I don't like how it makes every zk exception into a RuntimeException. But I'm thumbs up. .. Adam On

Re: ZkClient package

2010-07-14 Thread Adam Rosien
Thomas - I like the ideas of your proposal, it seems very natural to use Callable/Future for zk operations rather than something with more opaque semantics (does this method block? etc.). Let's discuss this more, I'd be more than happy to help out. We're still using 3.2.1 so I'll probably have to

Re: Sequence Number Generation With Zookeeper

2010-08-11 Thread Adam Rosien
What happens during a network partition and different clients are incrementing "different" counters, and then the partition goes away? Won't (potentially) the same sequence value be given out to two clients? .. Adam On Thu, Aug 5, 2010 at 5:38 PM, Jonathan Holloway wrote: > Hi Ted, > > Thanks fo

Re: Sequence Number Generation With Zookeeper

2010-08-11 Thread Adam Rosien
appen. > > In a network partition, the side without a quorum can't update the file > version. > > On Wed, Aug 11, 2010 at 3:11 PM, Adam Rosien wrote: > >> What happens during a network partition and different clients are >> incrementing "different" counter

Backing up zk data files

2010-08-11 Thread Adam Rosien
http://hadoop.apache.org/zookeeper/docs/r3.3.1/zookeeperAdmin.html#sc_dataFileManagement says that one can copy the contents of the data directory and use it on another machine. The example states the other instance is not in the server list; what would happen if one did copy it to an offline membe

Re: kaChing using ZooKeeper: Continuous Deployment

2010-10-04 Thread Adam Rosien
Uhh, I'm not sure what you mean, but if anyone's curious I wrote the system that we use at kaChing to do continuous deployment with zk as the discovery and coordination layers, and I'd be happy to talk about how it works, etc. Pretty basic stuff. BTW it's Pascal-Louis Perez, CTO of kaChing. .. Ad