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

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

Commit cf220b2e927093e3bd6f409b4ca9f7b1be0a04a3 in couchdb-fabric's branch 
refs/heads/2971-count-distinct from [~tonysun83]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-fabric.git;h=cf220b2 ]

Add Else Clause For Embed Doc

When open_doc or open_revs return an error, we set the doc value
to be an error message. This way we account for errors rather than
transform_row throwing a function_clause.

COUCHDB-3109


> 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