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

fixed rt sink and source conn to stop thier helpers in terminate. #652 [JIRA: RIAK-1476] #652

Merged
merged 1 commit into from
Mar 2, 2016

Conversation

lordnull
Copy link
Contributor

@lordnull lordnull commented Jan 8, 2015

this is intended for 2.0.5. It fixes #649 and allows basho/riak_test#722 to pass.

@Basho-JIRA Basho-JIRA changed the title fixed rt sink and source conn to stop thier helpers in terminate. fixed rt sink and source conn to stop thier helpers in terminate. #652 [JIRA: RIAK-1476] Jan 12, 2015
%% TODO: Consider trying to do something graceful with poolboy?
catch riak_repl2_rtsink_helper:stop(State#state.helper),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this necessary? The rtsink_helper (and rtsource_helper) are both linked processes. As soon as the rtsource process terminates the associated helper should die with it.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normal exit of rtsink_conn is not being trapped by rtsink_helper. Another option is to set trap_exit at helpers?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the third option to exit with {shutdown, Reason} instead so you can tell why - but I think this terminate option is good for now.

@kuenishi
Copy link

Just heads up for @jonmeredith ^^;

@jonmeredith
Copy link
Contributor

+1 232f1eb

Sorry this languished so long. It's a good change.

borshop added a commit that referenced this pull request Feb 26, 2016
fixed rt sink and source conn to stop thier helpers in terminate. #652 [JIRA: RIAK-1476]

Reviewed-by: jonmeredith
@jonmeredith jonmeredith merged commit 232f1eb into 2.0 Mar 2, 2016
@Basho-JIRA
Copy link

[~jmeredith] can you review/merge the related riak_test linked in the PR, and shepherd this through to the develop-2.2 branch? Or do we need to assign it to someone else?

_[posted via JIRA by Douglas Rohrer]_

@JeetKunDoug JeetKunDoug deleted the bug/mw/rt-helper-process-leak branch March 8, 2016 13:36
@Basho-JIRA
Copy link

[~jmeredith]Does this one need to be assigned to someone else, per Doug's comment above?

_[posted via JIRA by Patricia Brewer]_

@jonmeredith
Copy link
Contributor

It should be merged and merged forward.

On Wed, Mar 9, 2016 at 3:44 PM Basho JIRA bot! notifications@github.com
wrote:

[~jmeredith]Does this one need to be assigned to someone else, per Doug's
comment above?

[posted via JIRA by Patricia Brewer]


Reply to this email directly or view it on GitHub
#652 (comment).

@Basho-JIRA
Copy link

Did I screw up merging this, or reporting it was merged?

On Thu, Mar 10, 2016 at 6:13 AM Douglas Rohrer (JIRA) <

_[posted via JIRA by Jon Meredith]_

@Basho-JIRA
Copy link

Just didn't see the merge forward, and knew you were busy, so asked Brian to take over. Did you do the forward merge already?

Doug

_[posted via JIRA by Douglas Rohrer]_

@Basho-JIRA
Copy link

I thought I did - it's easy for Sparrow to double-check - those :stop calls
in the terminate/2 funcs.

On Thu, Mar 10, 2016 at 7:45 AM Douglas Rohrer (JIRA) <

_[posted via JIRA by Jon Meredith]_

@JeetKunDoug
Copy link
Contributor

resolves #649

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants