Hello,
I’ve been trying to use a couple features of Riak 2, but i cannot get things to 
work.
I’m kinda new to Riak, but i’d like to try these features for a project.

CRDTs:
I’m trying to run this code: 
https://gist.github.com/russelldb/5da7d895cebc77dd38b8

First i create the type, which i do not exactly understand what it means, but i 
believe i’m creating a bucket that supports maps.

./riak-admin bucket-type create maps '{"props": {"datatype":"map", 
"allow_mult":true}}'
./riak-admin bucket-type activate maps

and then i run the following operations:

f(Pid), {ok, Pid} = riakc_pb_socket:start_link("localhost", 8087).
user:create_user(Pid, <<"Key">>, <<"Bob">>, <<"Dobalina">>, <<"bodo">>). 

but always receive the error:
** exception exit: function_clause
             in function  riak_pb_dt_codec:decode_map_field/2
                called as riak_pb_dt_codec:decode_map_field({mapentry,
                                                             
{mapfield,<<"views">>,
                                                              'COUNTER'},
                                                             
0,[],undefined,undefined,
                                                             []},
                                                            [])
             in call from 
riak_pb_dt_codec:'-decode_update_response/3-lc$^0/1-0-'/1 
(src/riak_pb_dt_codec.erl, line 500)
             in call from riak_pb_dt_codec:decode_update_response/3 
(src/riak_pb_dt_codec.erl, line 500)
             in call from riakc_pb_socket:process_response/3 
(src/riakc_pb_socket.erl, line 1770)
             in call from riakc_pb_socket:handle_info/2 
(src/riakc_pb_socket.erl, line 1303)
             in call from gen_server:handle_msg/5 (gen_server.erl, line 607)
             in call from proc_lib:init_p_do_apply/3 (proc_lib.erl, line 227)


Strong consistency:
How does one activate this? As i understand, either the pb or the http clients 
do not accept the consistent property.

Details about my environment:
-I’m running Mac OSX 10.9
-Erlang R15B01
-Compiling riak “develop” branch, from basho github 
-Compiling riak-erlang-client “master” branch, from basho github.
-recompiled the latest versions of the branches just before writing this email.


Thank you for your help,
Valter



_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to