-
Notifications
You must be signed in to change notification settings - Fork 3k
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
GroupBy GroupDurationSubscriber references retained - memory build up #2661
Comments
hermanbanken
added a commit
to hermanbanken/RxJS
that referenced
this issue
Jun 13, 2017
The subscriptions to the durationSelector would pile up in the internal subscription list of the GroupBySubscriber. By maintaining a map entry per group we can discard subscriptions of a single group. Fixes ReactiveX#2661
hermanbanken
added a commit
to hermanbanken/RxJS
that referenced
this issue
Jun 13, 2017
The subscriptions to the durationSelector would pile up in the internal subscription list of the GroupBySubscriber. By maintaining a map entry per group we can discard subscriptions of a single group. Fixes ReactiveX#2661
hermanbanken
pushed a commit
to hermanbanken/RxJS
that referenced
this issue
Jun 13, 2017
The subscriptions to the durationSelector would pile up in the internal subscription list of the GroupBySubscriber. By maintaining a map entry per group we can discard subscriptions of a single group. Fixes ReactiveX#2661
hermanbanken
pushed a commit
to hermanbanken/RxJS
that referenced
this issue
Jun 13, 2017
The subscriptions to the durationSelector would pile up in the internal subscription list of the GroupBySubscriber. By removing the GroupDurationSubscriber explicitly from the GroupBySubscriber we prevent potential OOM exceptions. Fixes ReactiveX#2661
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
RxJS version:
5.4.0
Code to reproduce:
node --debug-brk --inspect index.js
Expected behaviour:
GroupDurationSubscribers should be removed from the (
GroupBy
) parent subscription once completed.Actual behaviour:
GroupDurationSubscribers
are retained in memory.Additional information:
When the
GroupDurationSubscriber
is completed it invokesthis.parent.removeGroup
which removes the group but it never invokesthis.parent.remove(this)
to let the parent (groupBy
operator) remove the reference to theGroupDurationSubscriber
so it can be garbage collected.This behaviour was implemented in rxjs4
Only when the
GroupBy
operator completes are all the subscriptions let go off and garbage collected.The text was updated successfully, but these errors were encountered: