-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
try/catch for rex error #181
Conversation
Can we rebase this up into a single commit? |
This is not seeming to fix the error for me. I created a clean, five node cluster with
|
It's certainly possible this is some environment issue, I'll keep playing around with different incantations of 'clean devclean', etc. |
I've tried re-cleaning, and verifying that I'm using the correct riak_control code: ➜ riak-2.0 git:(develop) ls -lah dev/dev1/lib/riak_control
lrwxr-xr-x 1 reid staff 70B May 8 15:53 dev/dev1/lib/riak_control -> /Users/reid/Documents/repos/basho-versioned/riak-2.0/deps/riak_control
➜ riak-2.0 git:(develop) cd deps/riak_control
➜ riak_control git:(bugfix/jnd/rex) git branch
* bugfix/jnd/rex
develop |
This actually looks like a lager problem. Will investigate. |
lager:warning(
"rpc:call(~p, riak_control_session, get_my_info, []) failed with reason: ~p",
['dev2@127.0.0.1',
{noproc,{gen_server,call,[{rex,'dev2@127.0.0.1'},{call,riak_control_session,get_my_info,...},...]}}]) this call should work. anybody see something I don't? |
riak_control doesn't have the lager parse transform. adding now. |
try/catch for rex error Wrapped other rpc:calls with try/catch Added lager warning messages to rex try/catches Added lager parse transform to rebar.config
Nice work @joedevivo. +1 on fa6c55e. |
If rex is down on a running node, rpc:calls to that node will crash the riak_control appliction. Wrapping them in a try/catch will prevent that.