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

function_clause on requesting multiple open_revs with lastest=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 2.0.0
    • None

    Description

      During work on the COUCHDB-2857 found another issue for us:

      $ echo '{}' | http put http://localhost:15984/db/doc
      {
          "id": "doc",
          "ok": true,
          "rev": "1-967a00dff5e02add41819138abb3284d"
      }
      
      $ echo '{"_rev": "1-967a00dff5e02add41819138abb3284d"}' | http put http://localhost:15984/db/doc
      {
          "id": "doc",
          "ok": true,
          "rev": "2-7051cbe5c8faecd085a3fa619e6e6337"
      }
      
      $ http 'http://localhost:15984/db/doc?open_revs=["1-967a00dff5e02add41819138abb3284d", "2-7051cbe5c8faecd085a3fa619e6e6337"]&latest=true'
      {"error":"unknown_error","reason":"function_clause","ref":162084788}
      
      $ cat dev/logs/node1.log
      2015-10-28 02:38:26.707 [error] node1@127.0.0.1 <0.1222.0> req_err(162084788) unknown_error : function_clause
          [<<"lists:zipwith/3 L450">>,<<"lists:zipwith/3 L450">>,<<"fabric_doc_open_revs:handle_message/3 L104">>,<<"rexi_utils:process_mailbox/6 L55">>,<<"rexi_utils:recv/6 L49">>,<<"fabric_doc_open_revs:go/4 L47">>,<<"chttpd_db:db_doc_req/3 L660">>,<<"chttpd:handle_request_int/1 L238">>]
      2015-10-28 02:38:26.707 [error] node1@127.0.0.1 <0.1222.0> httpd 500 error response:
       {"error":"unknown_error","reason":"function_clause","ref":162084788}
      

      Attachments

        Issue Links

          Activity

            People

              kxepal Alexander Shorin
              kxepal Alexander Shorin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: