basho-labs / riak-c-client

Riak C Client
Apache License 2.0
20 stars 8 forks source link

Add Map/Reduce Message #30

Closed hazen closed 10 years ago

hazen commented 10 years ago

Queue up behind other changes, but basically is simple M/R implementation.

broach commented 10 years ago

When performing a map-reduce, if there are not sufficient vnodes, riak will reply:

{"error":"insufficient_vnodes_available"}

This causes the client to segfault.

Edit: In fact, any error will. Invalid JSON, JS, etc.

broach commented 10 years ago

After fixing problem in client example, this works as expected. the map-reduce result is returned correctly or an error is reported. I replicated the example at http://docs.basho.com/riak/latest/dev/using/mapreduce/ using the riak_c_example

:+1: