I'm having trouble finding documentation for certain pieces of riak_core
code (and at times i'm not sure whether some concepts are OTP or Riak
defined) so I figured i'd ask here. I've mostly been using try-try-try,
bash_banjo, and riak_kv as my guides.
Once i know the answers and understand I would gladly volunteer to augment
the documentation in the riak_core code.
What is the difference between the different ways to send a command in
riak_core_vnode_master?
- command
- sync_command
- sync_spawn_command
as far as i can tell, the sync commands will hold up the Sender process
until the Sender receives a {reply, Whatever, State}, whereas command is
asynchronous and the Sender won't wait for a result. I returned noreply
from a handle_command that was called by sync_spawn_command and it hung on
the Sender side.
Next, when is it appropriate to use reply and noreply in handle_command?
Does no reply really mean there will never be a reply or just that it may
come from someone else at a later time (e.g. async call)
Finally, what is a Preflist? Is it just the list of preferred vnodes for a
particular command (e.g. if nothing has crashed, here are the people who
should see this.)
Thanks, and happy holidays!
Adam
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com