Great, I pulled the develop branch and went back a few commits and it works. Thank!
Let's see if someone can help me with the strong consistency. Looking forward for the new releases, Valter Em 19/11/2013 15:56, "Sean Cribbs" <s...@basho.com> escreveu: > Valter, > > Apologies for the issue with data types, that decoding bug has been fixed > since. If you pull down the latest riak_pb from the 'develop' branch, the > bug should be gone. We'll have further prerelease builds until code freeze > that you could try. > > I hope the other engineers can address the other problems you ran into. > > > On Tue, Nov 19, 2013 at 9:33 AM, Valter Balegas <bale...@gmail.com> wrote: > >> 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 >> > > > > -- > Sean Cribbs <s...@basho.com> > Software Engineer > Basho Technologies, Inc. > http://basho.com/ >
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com