You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "ILYA (JIRA)" <ji...@apache.org> on 2016/05/31 18:16:12 UTC

[jira] [Created] (COUCHDB-3026) fabric:open_revs doesn't filter out not_found replies anymore

ILYA created COUCHDB-3026:
-----------------------------

             Summary: fabric:open_revs doesn't filter out not_found replies anymore
                 Key: COUCHDB-3026
                 URL: https://issues.apache.org/jira/browse/COUCHDB-3026
             Project: CouchDB
          Issue Type: Bug
            Reporter: ILYA


Previously we filtered out `{{not_found,missing}, …}` replies in this line.

We don’t filter them out anymore. Therefore `fabric:open_revs` returns more than one reply. In some places we assume that the return from open_revs is always a list with one element in it. As a result we get a badmatch there.

Here is the list of places where we assume single reply:

- https://github.com/apache/couchdb-chttpd/blob/master/src/chttpd_db.erl#L699
- https://github.com/apache/couchdb-chttpd/blob/master/src/chttpd_db.erl#L1040:L1044
- https://github.com/apache/couchdb-chttpd/blob/master/src/chttpd_db.erl#L1209:L1210
- https://github.com/apache/couchdb-ddoc-cache/blob/master/src/ddoc_cache_opener.erl#L123
- https://github.com/apache/couchdb-fabric/blob/master/src/fabric_view.erl#L180:L183

All above places are broken if we don't filter not_found.



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