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:21:12 UTC

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

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

ILYA commented on COUCHDB-3026:
-------------------------------

> Previously we filtered out `{{not_found,missing}, …}` replies in this line.
We filtered them out before this commit https://github.com/apache/couchdb-fabric/commit/9a1d0c54c78cef70d1a3992f3c71ef2878c498e4#diff-08213ce8be8dc7d5b5cb61a08d497308L1

> 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)