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

Query: Fix memory leak by making FeedIterator IDisposable #1613

Merged
merged 6 commits into from
Jun 11, 2020

Conversation

j82w
Copy link
Contributor

@j82w j82w commented Jun 10, 2020

Pull Request Template

Description

This PR adds IDisposable to the FeedIterators to fix a memory leak caused by the query logic buffering pages in the background. The FeedIterators have default implementation to avoid breaking any users that are extending the base abstract class.

NOTE: BREAKING CHANGE
Any users that have a static analysis tool checking for IDisposable will be broken when upgrade to this version.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Closing issues

Put closes #1607

Assignee

Please add yourself as the assignee

Projects

Please add relevant projects so this issue can be properly tracked.

@j82w j82w added bug Something isn't working QUERY labels Jun 10, 2020
@j82w j82w self-assigned this Jun 10, 2020
bchong95
bchong95 previously approved these changes Jun 11, 2020
@j82w j82w changed the title FeedIterator: Add disposable to fix memory leak FeedIterator: Add IDisposable to fix memory leak Jun 11, 2020
@j82w j82w changed the title FeedIterator: Add IDisposable to fix memory leak Query: Fix memory leak by making FeedIterator IDisposable Jun 11, 2020
@j82w j82w merged commit 908cea4 into master Jun 11, 2020
@j82w j82w deleted the users/jawilley/query/feediterator_dispose branch June 11, 2020 19:09
@ghost
Copy link

ghost commented Dec 15, 2021

Closing due to in-activity, pease feel free to re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working QUERY
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FeedIterator needs to be disposed
4 participants