Skip to content

Add protobuf yokozuna admin support#276

Merged
coderoshi merged 2 commits intomasterfrom
feature/er/yokozuna
Sep 19, 2013
Merged

Add protobuf yokozuna admin support#276
coderoshi merged 2 commits intomasterfrom
feature/er/yokozuna

Conversation

@coderoshi
Copy link
Copy Markdown
Contributor

Added Yokozuna admin support and tests for various search queries.

This also requires an installed riak_pb python bundle. For now, you can run python setup.py install against the current riak_pb project. This project must be deployed to pypi before this PR can be merged.

In order to run this, you'll need to have yokozuna = on in your riak.conf file, as well as run the python test with a RUN_YZ=1 flag. This will activate the yokozuna tests, and deactivate riak search tests. There is no way to run both yokozuna and search tests at the same time, which is fun, since there's no way to run YZ and RS on the same server anyway.

Comment thread riak/transports/feature_detect.py Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be 2.0. Sending this to a 1.4 node will break.

@seancribbs
Copy link
Copy Markdown

This is good, I have no problem with the code and the tests read well and pass. However, there was some tweaking I had to do in riak_pb to make it work, adding this line to riak_pb/__init__.py:

from riak_yokozuna_pb2 import *

I'd suggest adding that to riak_pb or importing the riak_yokozuna_pb2 module explicitly, preferably the former.

Otherwise, 👍

@coderoshi
Copy link
Copy Markdown
Contributor Author

After basho/riak_pb#56 is merged and deployed to pypi, this should be ready to merge

coderoshi added a commit that referenced this pull request Sep 19, 2013
Add protobuf yokozuna admin support
@coderoshi coderoshi merged commit 174b34d into master Sep 19, 2013
@seancribbs seancribbs deleted the feature/er/yokozuna branch September 19, 2013 21:43
@seancribbs seancribbs removed their assignment May 8, 2015
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.

2 participants