tonysun83 edited a comment on issue #1789: New Feature: Database Partitions URL: https://github.com/apache/couchdb/pull/1789#issuecomment-450795526 Running through the elixir tests I'm getting 500's due to a `couch_ejson_compare:less_erl/2` function_clause. `less_erl` doesn't match with tuples. I wonder if I have the latest commits for this branch? ``` 1) test partitioned query using index and range scan (PartitionMangoTest) test/partition_mango_test.exs:245 Assertion with == failed code: assert resp.status_code() == 200 left: 500 right: 200 stacktrace: test/partition_mango_test.exs:264: (test) ``` Dbcore logs: ``` [error] 2019-01-02T06:24:38.655017Z [email protected] <0.16144.0> 7b878638a9 rexi_server: from: [email protected](<27635.14553.0>) mfa: fabric_rpc:map_view/5 throw:{function_clause,[{couch_ejson_compare,less_erl,[{<<"foo">>,<<"98">>},{<<"foo">>,<<"96">>}],[{file,"src/couch_ejson_compare.erl"},{line,54}]},{couch_ejson_compare,less_list,2,[{file,"src/couch_ejson_compare.erl"},{line,106}]},{couch_ejson_compare,less_json_ids,2,[{file,"src/couch_ejson_compare.erl"},{line,39}]},{lists,sort,2,[{file,"lists.erl"},{line,967}]},{couch_btree,query_modify,4,[{file,"src/couch_btree.erl"},{line,260}]},{couch_btree,add_remove,3,[{file,"src/couch_btree.erl"},{line,239}]},{couch_mrview_updater,'-write_kvs/6-fun-1-',8,[{file,"src/couch_mrview_updater.erl"},{line,347}]},{lists,zipwith,3,[{file,"lists.erl"},{line,449}]}]} [{couch_mrview_util,get_view_index_state,5,[{file,"src/couch_mrview_util.erl"},{line,142}]},{couch_mrview_util,get_view,4,[{file,"src/couch_mrview_util.erl"},{line,86}]},{couch_mrview,query_view,6,[{file,"src/couch_mrview.erl"},{line,265}]},{rexi_server,init_p,3,[{file,"src/rexi_server.erl"},{line,140}]}] [error] 2019-01-02T06:24:38.654986Z [email protected] <0.14553.0> 7b878638a9 req_err(3510611728) badmatch : {error, {function_clause, [{couch_ejson_compare,less_erl, [{<<"foo">>,<<"98">>},{<<"foo">>,<<"96">>}], [{file,"src/couch_ejson_compare.erl"},{line,54}]}, {couch_ejson_compare,less_list,2, [{file,"src/couch_ejson_compare.erl"},{line,106}]}, {couch_ejson_compare,less_json_ids,2, [{file,"src/couch_ejson_compare.erl"},{line,39}]}, {lists,sort,2,[{file,"lists.erl"},{line,967}]}, {couch_btree,query_modify,4, [{file,"src/couch_btree.erl"},{line,260}]}, {couch_btree,add_remove,3,[{file,"src/couch_btree.erl"},{line,239}]}, {couch_mrview_updater,'-write_kvs/6-fun-1-',8, [{file,"src/couch_mrview_updater.erl"},{line,347}]}, {lists,zipwith,3,[{file,"lists.erl"},{line,449}]}], [{couch_mrview_util,get_view_index_state,5, [{file,"src/couch_mrview_util.erl"},{line,142}]}, {couch_mrview_util,get_view,4, [{file,"src/couch_mrview_util.erl"},{line,86}]}, {couch_mrview,query_view,6, [{file,"src/couch_mrview.erl"},{line,265}]}, {rexi_server,init_p,3,[{file,"src/rexi_server.erl"},{line,140}]}]}} [<<"mango_httpd:handle_find_req/2 L189">>,<<"mango_httpd:handle_req/2 L38">>,<<"chttpd:handle_req_after_auth/2 L320">>,<<"chttpd:process_request/1 L303">>,<<"chttpd:handle_request_int/1 L243">>,<<"mochiweb_http:headers/6 L128">>,<<"proc_lib:init_p_do_apply/3 L237">>] ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
