The "postcommit" property on a bucket should be a list of "mod", "fun" references. Are you passing a list to the postcommit property?
Dan Sent from my iPhone On Aug 2, 2010, at 3:04 AM, Joseph Lambert <[email protected]> wrote: > Hi, > > I've been trying to work with postcommit hooks to try a method for creating > indexes. I've added to the bucket properties "mod" : "post_commit_index" and > "fun" : "index_value" and verified those properties are set. > > I then attach to riak, and make sure the module is loaded. Then, when I try > to insert some data into the bucket, I get an error with the postcommit that > shows this: > > ** Reason for termination = > ** {{case_clause,{struct,[{<<"mod">>,<<"post_commit_index">>}, > <<"fun">>,<<"index_value">>}]}}, > [{riak_kv_put_fsm,invoke_hook,3}, > {riak_kv_put_fsm,waiting_vnode_dw,2}, > {gen_fsm,handle_msg,7}, > {proc_lib,init_p_do_apply,3}]} > > If I attach the console and run m(). I can see the module is loaded, and can > test that the function index_value actually works. > > In actuality, this function currently does nothing, it is just an attempt to > test triggering the postcommit hook function. Any insights into what I may be > doing wrong? > > - Joe Lambert > > [email protected] > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
