Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-3113

fabric:open_revs can return {ok, []}

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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. Note that we set reply to be [] and worker to be nil.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              iilyak ILYA
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: