[ 
https://issues.apache.org/jira/browse/COUCHDB-2531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14299980#comment-14299980
 ] 

ASF subversion and git services commented on COUCHDB-2531:
----------------------------------------------------------

Commit f418f0df6f44ac35d29f467880b7759ef7d72aa2 in couchdb-fabric's branch 
refs/heads/master from [~wilhol]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-fabric.git;h=f418f0d ]

Handle empty list of id/revs in fabric_doc_missing_revs:go

When AllIdsRevs is an empty list the result will always be an empty
response. Handle this explicitly given there is no work to do
(attempting to delegate to the shards previously resulted in a timeout).

This closes #10

COUCHDB-2531

Signed-off-by: Alexander Shorin <[email protected]>


> CouchDB 2.0: POST to /_revs_diff with no revisions times out
> ------------------------------------------------------------
>
>                 Key: COUCHDB-2531
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2531
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>            Reporter: Will Holley
>
> In CouchDB 1.6, posting an empty object to the _revs_diff endpoint returns an 
> empty object:
> {code}
> $ curl http://127.0.0.1:5984/revsdifftest -XPUT                               
>                                                                           
> {"ok":true}
> $ curl http://127.0.0.1:5984/revsdifftest/_revs_diff -XPOST 
> -H"Content-Type:application/json" -d"{}"
> {}
> {code}
> In CouchDB 2.0, the same request results in a timeout:
> {code}
> $ curl http://127.0.0.1:15984/revsdifftest -XPUT                              
>                                                                            
> {"ok":true}
> $ curl http://127.0.0.1:15984/revsdifftest/_revs_diff -XPOST 
> -H"Content-Type:application/json" -d"{}"
> {"error":"badmatch","reason":"{error,timeout}","ref":1478668763}
> {code}
> This currently breaks the PouchDB test suite when running against CouchDB 
> master.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to