hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Hunt <ph...@apache.org>
Subject Re: zookeeper consistency model?
Date Thu, 29 Apr 2010 15:43:18 GMT
Hi Chen, this section of the docs has details on our guarantees, in 
particular see the note:

http://hadoop.apache.org/zookeeper/docs/current/zookeeperProgrammers.html#ch_zkGuarantees

Patrick

On 04/29/2010 07:42 AM, Flavio Junqueira wrote:
> Hi Chen, Let's say that the value of a znode "/test" is initially v and
> client A writes value v' to znode "/test". If the server that client B
> is connected to has not persisted the update operation of A, it will
> read v. If it submits sync before the read, client B will read v'.
>
> -Flavio
>
> On Apr 29, 2010, at 11:58 AM, Chen Bangzhong wrote:
>
>> If client A and Client B both connects to Zookeeper, A updates one znode
>> and succeed, assume B connects to a server that haven't persisted the
>> update yet, eg. the server is in minority, what value will B read? new
>> value or older value? what if B calls sync before read the znode?
>

Mime
View raw message