couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Kocoloski <adam.kocolo...@gmail.com>
Subject Re: Trouble with replication
Date Fri, 30 Jan 2009 06:53:22 GMT
On Jan 30, 2009, at 1:47 AM, Chris Anderson wrote:

> On Thu, Jan 29, 2009 at 9:23 PM, Antony Blakey <antony.blakey@gmail.com 
> > wrote:
>>
>> Consider three nodes A, B and C where
>>
>> A: has a validation function F
>> B: a document that is invalid under F
>>
>> Replicating B -> C, A -> C is different than A -> C, B -> C, and  
>> there is no
>> global steady state that can be reached.
>
> I think it is the responsibility of the application to write sane
> validation functions. Also, I don't see how the order of incoming
> replications to C matters. Maybe you can spell it out for me.

If A -> C happens first then C will have the validation function F and  
it will reject the document from B that is invalid under F.  If B -> C  
happens first the document sneaks in without validating.

Adam

Mime
View raw message