You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Nikolai Teofilov (JIRA)" <ji...@apache.org> on 2010/03/16 23:31:04 UTC
[jira] Created: (COUCHDB-703) doc_ids replicate always the same
document list
doc_ids replicate always the same document list
-------------------------------------------------
Key: COUCHDB-703
URL: https://issues.apache.org/jira/browse/COUCHDB-703
Project: CouchDB
Issue Type: Bug
Components: Replication
Affects Versions: 0.11
Environment: windows xp and mac osx
Reporter: Nikolai Teofilov
Fix For: 0.11
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (COUCHDB-703) doc_ids replicate always the same
document list
Posted by "Jan Lehnardt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Lehnardt closed COUCHDB-703.
--------------------------------
Resolution: Fixed
Applied in trunk (r925883) and 0.11.x (r925884).
> doc_ids replicate always the same document list
> -------------------------------------------------
>
> Key: COUCHDB-703
> URL: https://issues.apache.org/jira/browse/COUCHDB-703
> Project: CouchDB
> Issue Type: Bug
> Components: Replication
> Affects Versions: 0.11
> Environment: windows xp and mac osx
> Reporter: Nikolai Teofilov
> Fix For: 0.11
>
> Attachments: couchdb-703-regression-test-trunk.patch, couchdb-703-trunk.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-703) doc_ids replicate always the same
document list
Posted by "Filipe Manana (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846881#action_12846881 ]
Filipe Manana commented on COUCHDB-703:
---------------------------------------
Weird.
Since I implemented that feature, I'll be looking into it.
cheers
> doc_ids replicate always the same document list
> -------------------------------------------------
>
> Key: COUCHDB-703
> URL: https://issues.apache.org/jira/browse/COUCHDB-703
> Project: CouchDB
> Issue Type: Bug
> Components: Replication
> Affects Versions: 0.11
> Environment: windows xp and mac osx
> Reporter: Nikolai Teofilov
> Fix For: 0.11
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-703) doc_ids replicate always the same
document list
Posted by "Filipe Manana (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12847656#action_12847656 ]
Filipe Manana commented on COUCHDB-703:
---------------------------------------
$ cd your_couch_db_checkout_dir
$ git apply --reject couchdb-703-trunk.patch
or
$ patch -p1 < couchdb-703-trunk.patch
then build as usual
> doc_ids replicate always the same document list
> -------------------------------------------------
>
> Key: COUCHDB-703
> URL: https://issues.apache.org/jira/browse/COUCHDB-703
> Project: CouchDB
> Issue Type: Bug
> Components: Replication
> Affects Versions: 0.11
> Environment: windows xp and mac osx
> Reporter: Nikolai Teofilov
> Fix For: 0.11
>
> Attachments: couchdb-703-trunk.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-703) doc_ids replicate always the same
document list
Posted by "Filipe Manana (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filipe Manana updated COUCHDB-703:
----------------------------------
Attachment: couchdb-703-regression-test-trunk.patch
Regression test.
> doc_ids replicate always the same document list
> -------------------------------------------------
>
> Key: COUCHDB-703
> URL: https://issues.apache.org/jira/browse/COUCHDB-703
> Project: CouchDB
> Issue Type: Bug
> Components: Replication
> Affects Versions: 0.11
> Environment: windows xp and mac osx
> Reporter: Nikolai Teofilov
> Fix For: 0.11
>
> Attachments: couchdb-703-regression-test-trunk.patch, couchdb-703-trunk.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Updated: (COUCHDB-703) doc_ids replicate always the same document list
Posted by Nikolai Teofilov <n....@gmail.com>.
How to use the patch file?
On 20.03.2010, at 00:08, Filipe Manana (JIRA) wrote:
>
> [ https://issues.apache.org/jira/browse/COUCHDB-703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Filipe Manana updated COUCHDB-703:
> ----------------------------------
>
> Attachment: couchdb-703-trunk.patch
>
> Fixes the issue.
>
>> doc_ids replicate always the same document list
>> -------------------------------------------------
>>
>> Key: COUCHDB-703
>> URL: https://issues.apache.org/jira/browse/COUCHDB-703
>> Project: CouchDB
>> Issue Type: Bug
>> Components: Replication
>> Affects Versions: 0.11
>> Environment: windows xp and mac osx
>> Reporter: Nikolai Teofilov
>> Fix For: 0.11
>>
>> Attachments: couchdb-703-trunk.patch
>>
>>
>> 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.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
[jira] Updated: (COUCHDB-703) doc_ids replicate always the same
document list
Posted by "Filipe Manana (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filipe Manana updated COUCHDB-703:
----------------------------------
Attachment: couchdb-703-trunk.patch
Fixes the issue.
> doc_ids replicate always the same document list
> -------------------------------------------------
>
> Key: COUCHDB-703
> URL: https://issues.apache.org/jira/browse/COUCHDB-703
> Project: CouchDB
> Issue Type: Bug
> Components: Replication
> Affects Versions: 0.11
> Environment: windows xp and mac osx
> Reporter: Nikolai Teofilov
> Fix For: 0.11
>
> Attachments: couchdb-703-trunk.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-703) doc_ids replicate always the same
document list
Posted by "Jan Lehnardt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12847659#action_12847659 ]
Jan Lehnardt commented on COUCHDB-703:
--------------------------------------
Applied in trunk r925488 and 0.11.x r925489. I would love to see a regression test for this, leaving the ticket open until we have one.
> doc_ids replicate always the same document list
> -------------------------------------------------
>
> Key: COUCHDB-703
> URL: https://issues.apache.org/jira/browse/COUCHDB-703
> Project: CouchDB
> Issue Type: Bug
> Components: Replication
> Affects Versions: 0.11
> Environment: windows xp and mac osx
> Reporter: Nikolai Teofilov
> Fix For: 0.11
>
> Attachments: couchdb-703-trunk.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.