[ https://issues.apache.org/jira/browse/COUCHDB-3113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15863100#comment-15863100 ]
ASF GitHub Bot commented on COUCHDB-3113: ----------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/couchdb-fabric/pull/88 > fabric:open_revs can return {ok, []} > ------------------------------------ > > Key: COUCHDB-3113 > URL: https://issues.apache.org/jira/browse/COUCHDB-3113 > Project: CouchDB > Issue Type: Bug > Reporter: ILYA > > According to typespec fabric:open_revs should return > - {ok, #doc{}} > - {{not_found,missing}, revision()} > However in the case when the coordinator receive rexi_EXIT from multiple > workers before the reply (for example when the worker crashes) the open_revs > reply becomes \{ok, []}. > This is due to the fact that we dispatch rexi_DOWN and rexi_EXIT recursively > to handle_message(\{ok, Replies} [see > here|https://github.com/apache/couchdb-fabric/blob/master/src/fabric_doc_open_revs.erl#L73 > clause]. Note that we set reply to be [] and worker to be nil. -- This message was sent by Atlassian JIRA (v6.3.15#6346)