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

[release/2.2] Backport memory leak fix from 3.0 #13840

Merged
merged 3 commits into from Oct 1, 2019

Conversation

jkotalik
Copy link
Contributor

@jkotalik jkotalik commented Sep 9, 2019

Same as #13743, but for 2.2.

Description
Customers using the Microsoft.AspNetCore.DataProtection.EntityFrameworkCore package would silently hit a memory leak every time EntityFrameworkCoreXmlRepository.GetAllElements is called. Specifically, both the Logger and Services would leak each time this is called.

Customer impact
In 2.2, customers will see increased memory usage everytime they call EntityFrameworkCoreXmlRepository.GetAllElements due to a memory leak.

Regression
No. This behavior has existed since the release of 2.2.

Risk
Low. This changes the call to TryParseKeyXml from an instance method to static.

@Pilchie can you take this to ship room It's the same change as above, but minimized for 2.2.

@jkotalik
Copy link
Contributor Author

jkotalik commented Sep 9, 2019

@aspnet/build I'm hitting 401s for the windows and mac builds for 2.2. Any idea what is going on?

@dougbu
Copy link
Member

dougbu commented Sep 10, 2019

@jkotalik this is the same issue w/ obsoleted feeds that @Tratcher ran into in #13746. Suggest cherry-picking 67f93c3 into your branch.

@Pilchie Pilchie added the area-dataprotection Includes: DataProtection label Sep 10, 2019
@BrennanConroy
Copy link
Member

Need to update the patch config file

@jkotalik jkotalik added the Servicing-consider Shiproom approval is required for the issue label Sep 11, 2019
@analogrelay analogrelay changed the title Backport memory leak fix from 3.0 [release/2.2] Backport memory leak fix from 3.0 Sep 26, 2019
@analogrelay analogrelay added Servicing-approved Shiproom has approved the issue and removed Servicing-consider Shiproom approval is required for the issue labels Sep 26, 2019
@jkotalik
Copy link
Contributor Author

jkotalik commented Oct 1, 2019

Had to fix merge conflicts, will merge once green.

@analogrelay analogrelay merged commit 59bdc34 into release/2.2 Oct 1, 2019
@analogrelay analogrelay deleted the jkotalik/22DataProtectionEf branch October 1, 2019 23:06
@analogrelay analogrelay modified the milestones: 2.2.7, 2.2.8 Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dataprotection Includes: DataProtection Servicing-approved Shiproom has approved the issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants