Skip to content
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

Race condition causes fscoordinator crash [JIRA: RIAK-2378] #722

Open
ian-mi opened this issue Feb 10, 2016 · 0 comments
Open

Race condition causes fscoordinator crash [JIRA: RIAK-2378] #722

ian-mi opened this issue Feb 10, 2016 · 0 comments

Comments

@ian-mi
Copy link
Contributor

ian-mi commented Feb 10, 2016

The fscoordinator process can occasionally crash due to an exception such as the following:

exception exit: {{normal,{gen_server,call,[<18203.16286.3>,cluster_name,120000]}},[{gen_server,terminate,6,[{file,"gen_server.erl"},{line,744}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}

Which appears to be triggered by the following call to riak_repl2_fssource:cluster_name: https://github.com/basho/riak_repl/blob/develop/src/riak_repl2_fscoordinator.erl#L850. This is called after attempting to start an fssource when the fssource_sup returns already_started. For this call to trigger a normal exception, I suspect that the fssource must be exiting with normal while the call is in its message queue.

@Basho-JIRA Basho-JIRA changed the title Race condition causes fscoordinator crash Race condition causes fscoordinator crash [JIRA: RIAK-2378] Feb 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants