Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure reported on second replication of a couchdb database after editing a single document #19

Closed
brailateo opened this issue Jan 31, 2013 · 1 comment

Comments

@brailateo
Copy link

Got the new sources - installed and succeeded in make a first replication from a CouchDB database with 3 documents to the sync_gateway

teo@teo:~$ curl -X POST http://172.16.1.8:5984/_replicate \
   -d '{"source":"http://172.16.1.8:5984/apia","target":"http://172.16.1.8:4984/sync_gateway"}'  \
   -H "Content-Type: application/json"
{"ok":true,"no_changes":true,"session_id":"ced39a4fc582193438e008449fa587ae","source_last_seq":8,"replication_id_version":2,"history":[{"session_id":"ced39a4fc582193438e008449fa587ae","start_time":"Thu, 31 Jan 2013 11:50:18 GMT","end_time":"Thu, 31 Jan 2013 11:50:18 GMT","start_last_seq":0,"end_last_seq":8,"recorded_seq":8,"missing_checked":5,"missing_found":5,"docs_read":5,"docs_written":5,"doc_write_failures":0}]}

After editing a single document in the CouchDB database, I tried a second replication:

teo@teo:~$ curl -X POST http://172.16.1.8:5984/_replicate \
  -d '{"source":"http://172.16.1.8:5984/apia","target":"http://172.16.1.8:4984/sync_gateway"}' \
  -H "Content-Type: application/json"
{"error":"checkpoint_commit_failure","reason":"Error updating the target checkpoint document: conflict"}

Tried to GET the changed document from sync_gateway:

teo@teo:~$ curl -X GET http://172.16.1.8:4984/sync_gateway/2ab65b876a29ff310ae2882c4306c5b3
{   "_id":"2ab65b876a29ff310ae2882c4306c5b3",
    "_rev":"2-4cc34455eb88aff3fc30a1c2489050c3",
    "channels":["pndr","apia","sport"],
    "nume":"Ovidiu",
    "oras":"Mallnitz"}

I got the last version of the document ( with oras:"Mallnitz" ) , this is OK!
But what is the {"error":"checkpoint_commit_failure","reason":"Error updating the target checkpoint document: conflict"} error from the second replication?

Teo

@brailateo
Copy link
Author

With the last changes already commited, this issue can now be closed too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant