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

ASF GitHub Bot commented on COUCHDB-3109:
-----------------------------------------

Github user tonysun83 closed the pull request at:

    https://github.com/apache/couchdb-fabric/pull/87


> 500 when include_docs=true for linked documents
> -----------------------------------------------
>
>                 Key: COUCHDB-3109
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3109
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: ILYA
>
> The problem happen when following conditions are satisfied:
> - user uses [linked 
> documents|http://wiki.apache.org/couchdb/Introduction_to_CouchDB_views#Linked_documents]
>  feature i.e. view emits {_id: "other_doc_id"}
> - query has include_docs=true
> - one of the shards returns any error or times out
> In this case we would have case_clause error either
> - in [case 
> fabric:open_doc|https://github.com/apache/couchdb-fabric/blob/master/src/fabric_view.erl#L171]
> - in [case 
> fabric:open_revs|https://github.com/apache/couchdb-fabric/blob/master/src/fabric_view.erl#L179]
> This case_clause error propagates to 
> [transform_row|https://github.com/apache/couchdb-fabric/blob/master/src/fabric_view.erl#L132]
>  and fails there since transform_row doesn't have a clause to handle errors.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to