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

Ensure proper cleanup of stream subscribers #6389

Merged
merged 5 commits into from
Oct 14, 2024
Merged

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented Sep 26, 2024

Stream subscribers were not being properly cleaned up correctly, because we were only cleaning up linked streams. This would result in keeping references to old plots being kept around preventing garbage collection and also mean that if you reused a Stream you would continue to pointlessly update discarded plots.

@philippjfr philippjfr changed the title Attach only top-level stream subscriber and ensure proper cleanup Ensure proper cleanup of stream subscribers Sep 26, 2024
@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Sep 26, 2024
Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.50%. Comparing base (017361b) to head (bf18dae).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6389      +/-   ##
==========================================
+ Coverage   88.48%   88.50%   +0.01%     
==========================================
  Files         323      323              
  Lines       68459    68531      +72     
==========================================
+ Hits        60579    60650      +71     
- Misses       7880     7881       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@philippjfr
Copy link
Member Author

@TheoMathurin No, watchers are separate, this only deals with subscribers installed by the plot itself.

@philippjfr philippjfr merged commit 14849d5 into main Oct 14, 2024
12 checks passed
@philippjfr philippjfr deleted the fix_stream_cleanup branch October 14, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants