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

Issues/30643 merge forward fixes #31525

Merged

Conversation

DmitryKuzmenko
Copy link
Contributor

What does this PR do?

Merge forward #31512 and #30796 into 2015.8

What issues does this PR fix or reference?

This is for @Ch3LL to check #30643.

skizunov and others added 2 commits February 27, 2016 11:08
salt/minion.py:
- In the `__master_disconnected` case, it originally set
`self.opts['master']` to the result of `self.eval_master`. This
makes no sense since `self.eval_master` returns a future. Now we
yield on `self.eval_master` and store both return values.
- Just like in `Minion.destroy`, we clear `self.pub_channel.on_recv`.
Also, if `self.pub_channel` has a `close`, it is invoked. This
resolves a circular reference issue with the TCP transport. The
`SaltMessageClient` contains function references to the
`connect_callback` and `disconnect_callback` functions in
`AsyncTCPPubChannel`. This circular reference prevents the `del` from
deallocating the `AsyncTCPPubChannel` object.

salt/transport/tcp.py:
- In `SaltMessageClient.close`, reset the function references
`self.connect_callback` and `self.disconnect_callback`. This allows a
subsequent `del` on `AsyncTCPPubChannel` to actually deallocate the
object.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
Fork executes finally section triple times.
@DmitryKuzmenko
Copy link
Contributor Author

I'll check what's wrong with the tests on Monday.

@DmitryKuzmenko
Copy link
Contributor Author

Sorry, had no time today to check this. Will do tomorrow.

@cachedout
Copy link
Contributor

I don't believe the test failures here are related to this PR. Merging.

cachedout pushed a commit that referenced this pull request Feb 29, 2016
@cachedout cachedout merged commit d5a4daa into saltstack:2015.8 Feb 29, 2016
@DmitryKuzmenko
Copy link
Contributor Author

Thank you!

@DmitryKuzmenko DmitryKuzmenko deleted the issues/30643_merge_forward_fixes branch August 15, 2016 14:10
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

3 participants