-
Notifications
You must be signed in to change notification settings - Fork 236
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
Multi backend not returning "indexes_not_supported" when expected [JIRA: RIAK-2360] #1329
Comments
@JeetKunDoug @jonmeredith - This only happens when typed buckets are used. I just added basho/riak_test#981 to begin adding tests. I added a test that does not use types, and will add typed tests going forward. |
@lukebakken I'm assuming this problem exists back in 2.0, right? I assume we'll want this for the next 2.0 release then, too, @JeetKunDoug? Just making sure the fix lands in the right place. |
@JeetKunDoug @javajolt - this gets even more interesting. I just ran |
Hrm - so perhaps the multi-backend is the real culprit... interesting. Thank you for continuing to try to figure this out. |
OK it gets even better.
|
If I have my cluster set to use
If I use multi backend with |
start_time = time.time() client = riak.RiakClient(protocol='http', host='192.168.222.101', http_port=8098) resultsAll = client.index('posts', 'all_int', 1).run() results = client.index('posts', 'friends_count_int', 400, 250).run() count = 0 print(".........................................................................") from https://github.com/MuhtasimTanmoy/Riak-Twitter-Dataset-Benchmark/tree/master |
Riak supports multiple backends, some of which support indexes, some don't. The (default) bitcask backend doesn't support indexes. If you want to support indexes, you should start Riak with the leveled or eleveldb backends using the The old documentation gives some further advice (https://docs.riak.com/riak/kv/2.2.3/setup/planning/backend.1.html), though the docs don't cover the leveled backend which was implemented more recently. |
Riak 2.1.3 devrel, built with Erlang basho/otp OTP_R16B02_basho10rc2
Following the examples here: http://docs.basho.com/riak/latest/dev/using/2i/#Examples
Reproduction script is attached: test-2i.txt
Please create a bucket type named
people
using the leveldb backend (or use leveldb as the default Riak backend)Output:
Output when using a bucket type configured to use the memory backend:
The text was updated successfully, but these errors were encountered: