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

Lost Subscriptions #2576

Closed
wants to merge 1 commit into from
Closed

Conversation

abersnaze
Copy link
Contributor

After thinking about #2575 I added a note to all the places where a Subscription is lost from a Scheduler.

…where a Subscription is lost from a Scheduler.
@abersnaze abersnaze added the Bug label Jan 31, 2015
@@ -46,6 +46,7 @@ public void call(final Subscriber<? super T> s) {
final Worker worker = scheduler.createWorker();
s.add(worker);

// FIXME should subscription returned be added to the s composite
Copy link
Member

Choose a reason for hiding this comment

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

L47: the s.add ensures that pending tasks on the worker are cancelled.

@akarnokd
Copy link
Member

Looking at #2575 I'd say the change is a no-op on our scheduler implementations because all scheduled tasks are tracked and can be cancelled all at once if the worker is unsubscribed. The testIssue2191_SchedulerUnsubscribe test however mocks a scheduler and does not do the tracking the Schedulers all do.

@abersnaze abersnaze closed this Feb 1, 2015
@abersnaze abersnaze deleted the schedule_subscriptions branch February 1, 2015 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants