-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KV Hook Fails with badarg
if Search is not Enabled
#134
Comments
Could we add a bucket fix up that checks the main search enabled rather than every request? On Nov 30, 2012, at 12:40 PM, Bryan Fink notifications@github.com wrote:
|
We're focusing our efforts on our SOLR-based replacement, yokozuna. |
@jonmeredith thoughts on this? I could see a argument for setting the error message in 2.0 to something like "This should not be set for new solr-based search". People have already tried to setup yokozuna and follow old search commands, setup precommit hooks. Or just let it keep failing and fix in 2.x.x if it pops up on the mailing list. |
Decided to wait-and-see if a problem post-2.0 and we can open a new issue. |
If you manage to install the Search KV hook when search is disabled, PUTs to that bucket fail with an uninformative
badarg
:The
badarg
happens during the schema fetch:https://github.com/basho/riak_search/blob/master/src/riak_search_config.erl#L69
because the
schema_table
ETS table is not created when Search is not enabled.One fix might be to catch this
ets:lookup
call, but it's probably a better idea to check whether Search is enabled at the start of the hook, and fail there (with a more descriptive reason) instead.The text was updated successfully, but these errors were encountered: