Sean, Thank you very much for all your help and an extremely fast turn around with fixes. I have merged those two pull requests with my local branch and compiled with R15, I am now getting back expected results from the PB search API. 1.2 is looking very nice!
Thanks again! Andrew On Jun 29, 2012, at 2:52 PM, Sean Cribbs wrote: > Thank you! > > On Fri, Jun 29, 2012 at 2:51 PM, Andrew Zeneski <[email protected]> > wrote: > https://github.com/basho/riak_search/issues/118 > > On Jun 29, 2012, at 2:47 PM, Sean Cribbs wrote: > >> Andrew, >> >> Thanks for the details. It looks like a breakage in the PB service w.r.t. >> the internal Search API. I'll look for the source of the issue, but would >> you post an issue on the issue tracker in the meantime? Here's the link: >> https://github.com/basho/riak_search/issues >> >> On Fri, Jun 29, 2012 at 2:22 PM, Andrew Zeneski <[email protected]> >> wrote: >> Sean, >> >> What I am doing is very simple: >> >> 1. I install the precommit hook on my test bucket (bin/search-cmd install >> test) >> 2. I create a JSON object that looks like this {"name": "Andrew Zeneski"} >> and store it in Riak (using my API and the key "1000") >> 3. I create a RpbSearchQueryReq message, set ONLY the index to 'test' and >> the query (q) to "name:Andrew*" >> 4. Send the message w/ the message type 27 to PBC port and receive back >> RpbErrorResp with the error code 0 and the message below. >> >> From the command line I get: >> $ bin/search-cmd search-doc test 'name:Andrew*' >> >> :: Searching for 'name:Andrew*' / '' in test... >> >> ------------------------------ >> >> index/id: test/1000 >> <<"name">> => <<"Andrew Zeneski">> >> >> ------------------------------ >> >> :: Found 1 results. >> :: Maximum score ["0.00000",101,43,48] >> >> I noticed that the max score look exactly like the value in the error >> message. >> >> error.log shows the following for that PBC request: >> >> 2012-06-29 14:03:26.916 [error] <0.17489.5> gen_server <0.17489.5> >> terminated with reason: >> {error,badarg,[{erlang,list_to_float,[["0.00000",101,43,48]]},{riak_search_utils,to_float,1},{riak_search_pb_query,encode_results,3},{riak_search_pb_query,process,2},{riak_api_pb_server,process_message,4},{riak_api_pb_server,handle_info,2},{gen_server,handle_msg,5},{proc_lib,init_p_do_apply,3}]} >> >> 2012-06-29 14:03:26.920 [error] <0.17489.5> CRASH REPORT Process <0.17489.5> >> with 0 neighbours exited with reason: >> {error,badarg,[{erlang,list_to_float,[["0.00000",101,43,48]]},{riak_search_utils,to_float,1},{riak_search_pb_query,encode_results,3},{riak_search_pb_query,process,2},{riak_api_pb_server,process_message,4},{riak_api_pb_server,handle_info,2},{gen_server,handle_msg,5},{proc_lib,init_p_do_apply,3}]} >> in gen_server:terminate/6 >> >> 2012-06-29 14:03:26.923 [error] <0.62.0> Supervisor riak_api_pb_sup had >> child undefined started with {riak_api_pb_server,start_link,undefined} at >> <0.17489.5> exit with reason >> {error,badarg,[{erlang,list_to_float,[["0.00000",101,43,48]]},{riak_search_utils,to_float,1},{riak_search_pb_query,encode_results,3},{riak_search_pb_query,process,2},{riak_api_pb_server,process_message,4},{riak_api_pb_server,handle_info,2},{gen_server,handle_msg,5},{proc_lib,init_p_do_apply,3}]} >> in context child_terminated >> >> >> What keeps throwing me off is the fact the response error says "Error >> processing incoming message", yet is contains the value of max score, so it >> seems like its more of a problem processing outgoing message. But I could be >> completely off base. >> >> Andrew >> >> On Jun 29, 2012, at 1:50 PM, Sean Cribbs wrote: >> >>> Perhaps, but that might some other bug. Can you describe the request you >>> sent? >>> >>> BTW, here's the PR that should fix the build/dep problem: >>> https://github.com/basho/riak_core/pull/204 >>> >>> On Fri, Jun 29, 2012 at 12:33 PM, Andrew Zeneski <[email protected]> >>> wrote: >>> Thanks Sean, >>> >>> Would those minor issues explain this error message I get? >>> >>> client_test.go:230: 0: Error processing incoming message: >>> error:badarg:[{erlang,list_to_float, >>> >>> [["0.00000",101,43,48]]}, >>> >>> {riak_search_utils,to_float, >>> 1}, >>> >>> {riak_search_pb_query, >>> >>> encode_results,3}, >>> >>> {riak_search_pb_query, >>> process,2}, >>> >>> {riak_api_pb_server, >>> >>> process_message,4}, >>> >>> {riak_api_pb_server, >>> >>> handle_info,2}, >>> >>> {gen_server,handle_msg,5}, >>> >>> {proc_lib,init_p_do_apply,3}] >>> FAIL >>> >>> >>> Andrew >>> >>>> Andrew, >>>> >>>> Yes it is, but we have some minor dependency/build issues to resolve. The >>>> next pre-release tag should have the appropriate fixes. >>>> >>>> On Fri, Jun 29, 2012 at 12:17 PM, Andrew Zeneski >>>> <[email protected]> wrote: >>>> I built the 1.2.0pre3 (and master) and now have secondary index lookups >>>> working in my client api; I am testing search right now but getting >>>> errors; is RpbSearchQueryReq (PBC) implemented in 1.2? >>>> >>>> Thanks! >>>> >>>> Andrew >>>> >>>> On Jun 28, 2012, at 4:26 PM, Andrew Zeneski wrote: >>>> >>>>> Thanks Sean, >>>>> >>>>> Indeed, sending either of those messages to Riak will result in a dropped >>>>> connection. >>>>> >>>>> I would like to move forward with my client implementation so that it >>>>> will be ready when 1.2 is released. >>>>> >>>>> Can I join in on the QA and maybe get a snapshot? Or should I be looking >>>>> for the 1.2 branch on github? >>>>> >>>>> Andrew >>>>> >>>>> >>>>> On Jun 28, 2012, at 4:14 PM, Sean Cribbs <[email protected]> wrote: >>>>> >>>>>> Hi Andrew, >>>>>> >>>>>> Those were added to be part of the 1.2 release, which is in testing/QA >>>>>> phases now. You can expect the release sometime next month. If you >>>>>> intend to use the .proto files in your client application, be aware that >>>>>> they may not be supported on the server yet (in fact, 1.1 and earlier >>>>>> will likely dump the connection). >>>>>> >>>>>> On Thu, Jun 28, 2012 at 4:11 PM, Andrew Zeneski >>>>>> <[email protected]> wrote: >>>>>> I am working on a new protocol buffer based client using the master >>>>>> riak_pb repository. I would just like to inquire on the state of riak_kv >>>>>> with the latest pb, specifically is RpbIndexReq and RpbSearchQueryReq >>>>>> implemented yet (I know it is not in 1.1.4), if not is there a road map >>>>>> or any idea when. >>>>>> >>>>>> Thanks! >>>>>> >>>>>> Andrew >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> riak-users mailing list >>>>>> [email protected] >>>>>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Sean Cribbs <[email protected]> >>>>>> Software Engineer >>>>>> Basho Technologies, Inc. >>>>>> http://basho.com/ >>>>>> >>>>> _______________________________________________ >>>>> riak-users mailing list >>>>> [email protected] >>>>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >>>> >>>> >>>> >>>> >>>> -- >>>> Sean Cribbs <[email protected]> >>>> Software Engineer >>>> Basho Technologies, Inc. >>>> http://basho.com/ >>>> >>> >>> >>> >>> >>> -- >>> Sean Cribbs <[email protected]> >>> Software Engineer >>> Basho Technologies, Inc. >>> http://basho.com/ >>> >> >> >> >> >> -- >> Sean Cribbs <[email protected]> >> Software Engineer >> Basho Technologies, Inc. >> http://basho.com/ >> > > > > > -- > Sean Cribbs <[email protected]> > Software Engineer > Basho Technologies, Inc. > http://basho.com/ >
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
