Concurrent reads and writes on BookKeeper

2010-05-18 Thread André Oriani
what I want ? Thanks for the attention, André Oriani

Re: Concurrent reads and writes on BookKeeper

2010-05-20 Thread André Oriani
begin to get more complex. Tks a lot, André Oriani Hi Andre, To guarantee that two clients that read from a ledger will read the same sequence of entries, we need to make sure that there is agreement on the end of the sequence. A client is still able to read from an open ledger, though. We have

Are Watchers execute sequentially or in parallel ?

2010-06-29 Thread André Oriani
Hi, Are Watchers executed sequentially or in parallel ? Suppose I want to monitor the children of a znode for any modification. I don't want the same watcher to be re-executed while it is still executing. 1) public class ChildrenWatcher implements Watcher{ public void

Re: Are Watchers execute sequentially or in parallel ?

2010-06-29 Thread André Oriani
. ben ps - in 2) you do not install a watch. On 06/29/2010 06:13 AM, André Oriani wrote: Hi, Are Watchers executed sequentially or in parallel ? Suppose I want to monitor the children of a znode for any modification. I don't want the same watcher to be re-executed while it is still executing. 1

BookKeeper Doubts

2010-07-17 Thread André Oriani
Hi, I was not sure if I had understood the behavior of BookKeeper from documentation. So I made a little program, reproduced below, to see what BookKeeper looks like in action. Assuming my code is correct ( you never know when your code has some nasty obvious bugs that only other person than

getChildren() when the number of children is very large

2010-07-20 Thread André Oriani
Hi folks, I was considering using Zookeeper to implement a replication protocol due the global order guarantee. In my case, operations are logged by creating persistent sequential znodes. Knowing the name of last applied znode, backups can identify pending operations and apply them in order.

Re: getChildren() when the number of children is very large

2010-07-20 Thread André Oriani
, André Oriani ra078...@students.ic.unicamp.br wrote: Hi folks, I was considering using Zookeeper to implement a replication protocol due the global order guarantee. In my case, operations are logged by creating persistent sequential znodes. Knowing the name of last applied znode