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?