Skip to content

Add protobuf yokozuna admin support #276

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

Merged
merged 2 commits into from
Sep 19, 2013
Merged

Add protobuf yokozuna admin support #276

merged 2 commits into from
Sep 19, 2013

Conversation

coderoshi
Copy link
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.


:rtype: bool
"""
return self.server_version >= versions[1.4]

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

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
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