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: 656

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.

  1. Server A and B are replicated and both have the same version of Jack document.
  2. In server A, Jack's mobile no is updated.
  3. In server B, Jack's address is updated.
  4. 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

Related posts about couchdb

Related posts about replication