You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Eric Avdey (JIRA)" <ji...@apache.org> on 2016/08/05 18:06:20 UTC
[jira] [Commented] (COUCHDB-3097) Behaviour of open_revs for
unknown revs changed from 1.6
[ https://issues.apache.org/jira/browse/COUCHDB-3097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15409822#comment-15409822 ]
Eric Avdey commented on COUCHDB-3097:
-------------------------------------
On CouchDB 1.6 passing in non existing revisions in open_revs returns them marked as "missing", when in CouchDB 2.0 the missing revisions just ignored, i.e.
{code}
$ http :5984
{
“couchdb”: “Welcome”,
“uuid”: “6c77bce10369b93fa79b8488f1e25444”,
“vendor”: {
“name”: “Homebrew”,
“version”: “1.6.1_6”
},
“version”: “1.6.1”
}
$ http put :5984/kuroneko
{
“ok”: true
}
$ http put :5984/kuroneko/shiro name=shiro suffix=sama
{
“id”: “shiro”,
“ok”: true,
“rev”: “1-f6ae51743ea84a2e2732979b4f51dab8”
}
$ http put :5984/kuroneko/shiro name=shiro suffix=chan rev==1-f6ae51743ea84a2e2732979b4f51dab8
{
“id”: “shiro”,
“ok”: true,
“rev”: “2-59b92374b8354579f84472ac6183bc45”
}
$ http get :5984/kuroneko/shiro
{
“_id”: “shiro”,
“_rev”: “2-59b92374b8354579f84472ac6183bc45”,
“name”: “shiro”,
“suffix”: “chan”
}
$ http get :5984/kuroneko/shiro open_revs==“[\”1-f6ae51743ea84a2e2732979b4f51dab8\”, \”1-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\”, \”2-59b92374b8354579f84472ac6183bc45\”, \”2-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\”]”
[
{
“ok”: {
“_id”: “shiro”,
“_rev”: “1-f6ae51743ea84a2e2732979b4f51dab8”,
“name”: “shiro”,
“suffix”: “sama”
}
},
{
“ok”: {
“_id”: “shiro”,
“_rev”: “2-59b92374b8354579f84472ac6183bc45”,
“name”: “shiro”,
“suffix”: “chan”
}
},
{
“missing”: “1-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa”
},
{
“missing”: “2-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb”
}
]
{code}
versus
{code}
$ http --auth root:1BkS4Ag5 :15984
{
"couchdb": "Welcome",
"vendor": {
"name": "The Apache Software Foundation"
},
"version": "1df597f"
}
$ http --auth root:1BkS4Ag5 put :15984/kuroneko
{
"ok": true
}
$ http --auth root:1BkS4Ag5 put :15984/kuroneko/shiro name=shiro suffix=sama
{
"id": "shiro",
"ok": true,
"rev": "1-f6ae51743ea84a2e2732979b4f51dab8"
}
$ http --auth root:1BkS4Ag5 put :15984/kuroneko/shiro name=shiro suffix=chan rev==1-f6ae51743ea84a2e2732979b4f51dab8
{
"id": "shiro",
"ok": true,
"rev": "2-59b92374b8354579f84472ac6183bc45"
}
$ http --auth root:1BkS4Ag5 get :15984/kuroneko/shiro
{
"_id": "shiro",
"_rev": "2-59b92374b8354579f84472ac6183bc45",
"name": "shiro",
"suffix": "chan"
}
$ http --auth root:1BkS4Ag5 get :15984/kuroneko/shiro open_revs=="[\"1-f6ae51743ea84a2e2732979b4f51dab8\", \"2-59b92374b8354579f84472ac6183bc45\"]"
[
{
"ok": {
"_id": "shiro",
"_rev": "1-f6ae51743ea84a2e2732979b4f51dab8",
"name": "shiro",
"suffix": "sama"
}
},
{
"ok": {
"_id": "shiro",
"_rev": "2-59b92374b8354579f84472ac6183bc45",
"name": "shiro",
"suffix": "chan"
}
}
]
$ http --auth root:1BkS4Ag5 get :15984/kuroneko/shiro open_revs=="[\"1-f6ae51743ea84a2e2732979b4f51dab8\", \"1-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\", \"2-59b92374b8354579f84472ac6183bc45\", \"2-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"]"
[
{
"ok": {
"_id": "shiro",
"_rev": "1-f6ae51743ea84a2e2732979b4f51dab8",
"name": "shiro",
"suffix": "sama"
}
},
{
"ok": {
"_id": "shiro",
"_rev": "2-59b92374b8354579f84472ac6183bc45",
"name": "shiro",
"suffix": "chan"
}
}
]
{code}
> Behaviour of open_revs for unknown revs changed from 1.6
> --------------------------------------------------------
>
> Key: COUCHDB-3097
> URL: https://issues.apache.org/jira/browse/COUCHDB-3097
> Project: CouchDB
> Issue Type: Bug
> Reporter: Eric Avdey
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)