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

Fix sync_spawn_command hang triggered by bug in vnode proxy overload handling #884

Merged
merged 1 commit into from Dec 15, 2016

Conversation

nickelization
Copy link
Contributor

If we call riak_core_vnode_master:sync_spawn_command, it ends up sending
a gen_event all-state event to the proxy for forwarding. However, in
handle_overload, the old code only had case clauses for '$gen_event' and
not '$gen_all_state_event'. This means the event would be passed to
handle_overload_info instead of handle_overload_request, which would
likely skip the vnode callback code that sends a response.

In Riak this meant that certain operations would hang during overload,
since the caller of sync_spawn_command would never get a response.
(This situation was made worse by the fact that the call is being done
with an infinity timeout, but that's an issue we'll have to address some
other time.)

If we call riak_core_vnode_master:sync_spawn_command, it ends up sending
a gen_event all-state event to the proxy for forwarding. However, in
handle_overload, the old code only had case clauses for '$gen_event' and
not '$gen_all_state_event'. This means the event would be passed to
handle_overload_info instead of handle_overload_request, which would
likely skip the vnode callback code that sends a response.

In Riak this meant that certain operations would hang during overload,
since the caller to sync_spawn_command would never be sent a response.
(This situation was made worse by the fact that the call is being done
with an infinity timeout, but that's an issue we'll have to address some
other time.)
@lehoff
Copy link

lehoff commented Dec 14, 2016

👍

@nickelization nickelization merged commit bd1bddc into develop Dec 15, 2016
@martincox martincox deleted the nem-fix-overload-sync-command-hang branch June 14, 2019 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants