Re: Partial replication bug
Yep! I will Cheers Nikolai On 16.03.2010, at 22:18, J Chris Anderson wrote: > > On Mar 16, 2010, at 1:18 PM, Nikolai Teofilov wrote: > >> Just notice a problem with the API for the replication by doc_ids: >> > > Thank you for the bug report. Do you mind creating a ticket for it on Jira so > we don't lose track of it? > > http://issues.apache.org/jira/browse/COUCHDB > > Thanks, > Chris > >> >> curl -X PUT http://192.168.10.239:5984/test >> >> curl -X PUT http://192.168.10.239/test/doc1 -d '{}' >> curl -X PUT http://192.168.10.239/test/doc2 -d '{}' >> curl -X PUT http://192.168.10.239/test/doc3 -d '{}' >> >> curl -X PUT http://192.168.10.239/test-replica >> >> >> curl -X POST http://127.0.0.1:5984/_replicate -d >> '{"source":"test","target":"test-replica", "doc_ids": ["doc1", "doc2", >> "doc3"]}' >> >> replicate all documents. three documents. >> >> curl -X DELETE http://127.0.0.1:5984/test-replica >> >> >> create again the database: >> >> curl -X PUT http://127.0.0.1:5984/test-replica >> >> replicate just two of the documents: >> >> curl -X POST http://127.0.0.1:5984/_replicate -d >> '{"source":"test","target":"test-replica", "doc_ids": ["doc1", "doc2"]}' >> >> will still replicate the all three documents. >
Re: Partial replication bug
On Mar 16, 2010, at 1:18 PM, Nikolai Teofilov wrote: > Just notice a problem with the API for the replication by doc_ids: > Thank you for the bug report. Do you mind creating a ticket for it on Jira so we don't lose track of it? http://issues.apache.org/jira/browse/COUCHDB Thanks, Chris > > curl -X PUT http://192.168.10.239:5984/test > > curl -X PUT http://192.168.10.239/test/doc1 -d '{}' > curl -X PUT http://192.168.10.239/test/doc2 -d '{}' > curl -X PUT http://192.168.10.239/test/doc3 -d '{}' > > curl -X PUT http://192.168.10.239/test-replica > > > curl -X POST http://127.0.0.1:5984/_replicate -d > '{"source":"test","target":"test-replica", "doc_ids": ["doc1", "doc2", > "doc3"]}' > > replicate all documents. three documents. > > curl -X DELETE http://127.0.0.1:5984/test-replica > > > create again the database: > > curl -X PUT http://127.0.0.1:5984/test-replica > > replicate just two of the documents: > > curl -X POST http://127.0.0.1:5984/_replicate -d > '{"source":"test","target":"test-replica", "doc_ids": ["doc1", "doc2"]}' > > will still replicate the all three documents.
Partial replication bug
Just notice a problem with the API for the replication by doc_ids: curl -X PUT http://192.168.10.239:5984/test curl -X PUT http://192.168.10.239/test/doc1 -d '{}' curl -X PUT http://192.168.10.239/test/doc2 -d '{}' curl -X PUT http://192.168.10.239/test/doc3 -d '{}' curl -X PUT http://192.168.10.239/test-replica curl -X POST http://127.0.0.1:5984/_replicate -d '{"source":"test","target":"test-replica", "doc_ids": ["doc1", "doc2", "doc3"]}' replicate all documents. three documents. curl -X DELETE http://127.0.0.1:5984/test-replica create again the database: curl -X PUT http://127.0.0.1:5984/test-replica replicate just two of the documents: curl -X POST http://127.0.0.1:5984/_replicate -d '{"source":"test","target":"test-replica", "doc_ids": ["doc1", "doc2"]}' will still replicate the all three documents.