Skip to content
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

Test new MR Search Switch and "index" spec #387

Merged
merged 9 commits into from Sep 25, 2013
Merged

Conversation

beerriot
Copy link

This PR replaces #373.

As of basho/riak_kv#664, Riak attempts to choose the correct system (riak_search or yokozuna) to provide MapReduce inputs when "search" is specified. The mapred_search_switch test makes sure that the expected system is chosen, given the cluster's configuration.

As of basho/yokozuna#174, when YZ is chosen, the Bucket in the traditional {search, Bucket, Query} form of search MR inputs will be translated to its associated index. The three extra commits in this PR that did not appear in #373 test that this is the case, and also that YZ filters results from other buckets stored in the same index.

Riak attempts to choose the correct search system (riak_search or
yokozuna) to provide MapReduce inputs when {search, Bucket, Query} is
specified. The `mapred_search_switch` test makes sure that the expected
system is chosen, given the cluster's configuration (whether riak_search
and yokozuna are each enabled, and whether the choice of which to use
has been set explicitly).
since they don't map 1:1, make sure the translation takes place

also add a wait for the index to become available before writing data
for it
to make sure that riak_search unmaps and that yokozuna doesn't remap
it will be translating the bucket search to an index search, but it
should also be filtering that index search by the bucket name
@beerriot
Copy link
Author

It might be a good idea to convert the MR requests to use the HTTP interface, so they have to go through JSON translation, instead of skirting by with erlang external format.

beerriot and others added 5 commits September 23, 2013 14:40
if both riak_search and yokozuna are enabled, but the
riak_kv:mapred_search appenv has not been set, default to riak_search
we have ripped out the earlier {index, Index} option to simplify things
yokozuna mapred_search no longer adds a bucket-name filter when
mapred-searching a bucket, so don't test for it working here
The "bucket" is the "index".  Chalk it up to poor naming make a long
time ago.  We're only human.
@rzezeski
Copy link
Contributor

+1 to merge.

rzezeski added a commit that referenced this pull request Sep 25, 2013
Test new MR Search Switch and "index" spec
@rzezeski rzezeski merged commit 6cfd6bb into master Sep 25, 2013
@hazen hazen deleted the feature/bwf/mr-switch branch November 5, 2016 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants