Couchdb conflict resolution
        Posted  
        
            by Sundar
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Sundar
        
        
        
        Published on 2010-04-09T08:00:16Z
        Indexed on 
            2010/04/09
            8:03 UTC
        
        
        Read the original article
        Hit count: 704
        
How does CouchDB handles conflicts while doing bi-directional replication?
For example: Lets say there are two address book databases (in server A and B). There is a document for Jack which contains contact details of Jack.
- Server A and B are replicated and both have the same version of Jack document.
 - In server A, Jack's mobile no is updated.
 - In server B, Jack's address is updated.
 - Now when we do bi-directional replication there is a conflict.
 
How does couchDB handles it? If we initiate replication in a Java program, is there a way to know whether there were any conflicts from the java program?
© Stack Overflow or respective owner