You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Christian Siegert (JIRA)" <ji...@apache.org> on 2010/08/30 17:03:56 UTC
[jira] Created: (COUCHDB-874) Creating->deleting->creating a
document produces a deleted conflict.
Creating->deleting->creating a document produces a deleted conflict.
--------------------------------------------------------------------
Key: COUCHDB-874
URL: https://issues.apache.org/jira/browse/COUCHDB-874
Project: CouchDB
Issue Type: Bug
Affects Versions: 1.0.1, 0.10, 0.12
Environment: Ubuntu 10.04 (64-bit) and CouchDB 0.10
Reporter: Christian Siegert
Creating a document, deleting it and creating it again with the same id but different content produces a deleted conflict. The code below reproduces the behavior.
#!/bin/sh
# No deleted conflict
URL="http://localhost:5984/db"
curl -X DELETE $URL
curl -X PUT $URL
curl -X PUT -d '{}' $URL/doc
curl -X DELETE $URL/doc?rev=1-967a00dff5e02add41819138abb3284d
curl $URL/doc
curl -X PUT -d '{}' $URL/doc
curl $URL/doc?meta=true
#!/bin/sh
# deleted conflict
URL="http://localhost:5984/db"
curl -X DELETE $URL
curl -X PUT $URL
curl -X PUT -d '{}' $URL/doc
curl -X DELETE $URL/doc?rev=1-967a00dff5e02add41819138abb3284d
curl $URL/doc
curl -X PUT -d '{"foo":"bar"}' $URL/doc
curl $URL/doc?meta=true
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Created: (COUCHDB-874) Creating->deleting->creating a
document produces a deleted conflict.
Posted by Klaus Trainer <kl...@web.de>.
Hi Christian,
> The code below reproduces the behavior.
I'm not able to reproduce the behaviour with CouchDB 1.0.1.
- Klaus
On Mon, 2010-08-30 at 11:03 -0400, Christian Siegert (JIRA) wrote:
> Creating->deleting->creating a document produces a deleted conflict.
> --------------------------------------------------------------------
>
> Key: COUCHDB-874
> URL: https://issues.apache.org/jira/browse/COUCHDB-874
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 1.0.1, 0.10, 0.12
> Environment: Ubuntu 10.04 (64-bit) and CouchDB 0.10
> Reporter: Christian Siegert
>
>
> Creating a document, deleting it and creating it again with the same id but different content produces a deleted conflict. The code below reproduces the behavior.
>
> #!/bin/sh
> # No deleted conflict
> URL="http://localhost:5984/db"
>
> curl -X DELETE $URL
> curl -X PUT $URL
>
> curl -X PUT -d '{}' $URL/doc
> curl -X DELETE $URL/doc?rev=1-967a00dff5e02add41819138abb3284d
> curl $URL/doc
> curl -X PUT -d '{}' $URL/doc
> curl $URL/doc?meta=true
>
>
> #!/bin/sh
> # deleted conflict
> URL="http://localhost:5984/db"
>
> curl -X DELETE $URL
> curl -X PUT $URL
>
> curl -X PUT -d '{}' $URL/doc
> curl -X DELETE $URL/doc?rev=1-967a00dff5e02add41819138abb3284d
> curl $URL/doc
> curl -X PUT -d '{"foo":"bar"}' $URL/doc
> curl $URL/doc?meta=true
>
[jira] Closed: (COUCHDB-874) Creating->deleting->creating a
document produces a deleted conflict.
Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Newson closed COUCHDB-874.
---------------------------------
Resolution: Not A Problem
After discussion on #couchdb, it turns out this behavior is by design, to allow conflict resolution while replicating.
> Creating->deleting->creating a document produces a deleted conflict.
> --------------------------------------------------------------------
>
> Key: COUCHDB-874
> URL: https://issues.apache.org/jira/browse/COUCHDB-874
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 0.10, 0.12, 1.0.1
> Environment: Ubuntu 10.04 (64-bit) and CouchDB 0.10
> Reporter: Christian Siegert
>
> Creating a document, deleting it and creating it again with the same id but different content produces a deleted conflict. The code below reproduces the behavior.
> #!/bin/sh
> # No deleted conflict
> URL="http://localhost:5984/db"
> curl -X DELETE $URL
> curl -X PUT $URL
> curl -X PUT -d '{}' $URL/doc
> curl -X DELETE $URL/doc?rev=1-967a00dff5e02add41819138abb3284d
> curl $URL/doc
> curl -X PUT -d '{}' $URL/doc
> curl $URL/doc?meta=true
> #!/bin/sh
> # deleted conflict
> URL="http://localhost:5984/db"
> curl -X DELETE $URL
> curl -X PUT $URL
> curl -X PUT -d '{}' $URL/doc
> curl -X DELETE $URL/doc?rev=1-967a00dff5e02add41819138abb3284d
> curl $URL/doc
> curl -X PUT -d '{"foo":"bar"}' $URL/doc
> curl $URL/doc?meta=true
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.