-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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 for #2191 - OperatorMulticast fails to unsubscribe from source #2455
Conversation
The multicast operator was removed from the public API before releasing 1.0. These internal classes will eventually go away as well. |
@benjchristensen OperatorMulticast is still used in |
I know. But it will eventually be removed. |
Fair enough, but in the meantime, we're still seeing thousands of Threads On 15 January 2015 at 16:33, Ben Christensen [email protected]
Don't let your mind wander -- it's too little to be let out alone. |
Couple months :-) Sorry, I'm not suggesting we don't fix it now. I did a poor job of setting context for this code :-) |
@duncani could you update the title? You don't need to put the link in the title. Just refer to the issue number, such as |
Ok, given that multicast is going away, I've moved the test cases over to OperatorReplayTest (since that's what they're really testing anyway). They'll still be a valid test for however replay gets reimplemented. |
Great, that's the type of decisions I was trying to influence by mentioning that |
I'm not sure why multicast would need to unsubscribe if the upstream completes: usually, the upstream goes away and as long as you don't retain a reference to the multicast operator itself, this shouldn't leak anything. Could you enlighten me? |
Specifically, when employing a Scheduler, it is registered as a subscription on the Subscriber. If you don't unsubscribe, the Scheduler is never released. In the case of the current computation scheduler, nothing much is lost. However, this is fatal for the CachedThreadScheduler. |
Thanks I see it now. |
Let's see if this still fails. |
Fix for #2191 - OperatorMulticast fails to unsubscribe from source
OperatorMulticast fails to unsubscribe from source. #2191