couchdbrevision-historyrevisions

CouchDB replication stopped after a _conflict


I have a user that today is not replicating the new documents that the others users are adding on my CoucDB database, in other words the user A does not see the docuemnts that the users B, C is adding every day.

I have seen the last document added from the user A to CouchDB and I have seen that the document has a new field

_conflicts: ["2-17d3fcec15fbe3b1eed3e7f8a14eae35"]}

enter image description here

I guess the conflict is in the second revision of the document, Is not it? I have 7 revision about the same document my question is How I can resolve it? How I can remove this conflict?


Solution

  • CouchDB does not attempt to merge the conflicting revision.

    Your application dictates how the merging should be done.

    see http://docs.couchdb.org/en/2.0.0/replication/conflicts.html

    but generaly speaking the suggested algorithm to fetch a document with conflict resolution:

    alos see the version on ruby