-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[release/7.0] Remove tagged keys as entries are evicted #43728
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
Conversation
@Pilchie for ask-mode validation |
src/Middleware/OutputCaching/src/Memory/MemoryOutputCacheStore.cs
Outdated
Show resolved
Hide resolved
src/Middleware/OutputCaching/src/Memory/MemoryOutputCacheStore.cs
Outdated
Show resolved
Hide resolved
src/Middleware/OutputCaching/src/Memory/MemoryOutputCacheStore.cs
Outdated
Show resolved
Hide resolved
src/Middleware/OutputCaching/test/MemoryOutputCacheStoreTests.cs
Outdated
Show resolved
Hide resolved
src/Middleware/OutputCaching/src/Memory/MemoryOutputCacheStore.cs
Outdated
Show resolved
Hide resolved
src/Middleware/OutputCaching/test/MemoryOutputCacheStoreTests.cs
Outdated
Show resolved
Hide resolved
src/Middleware/OutputCaching/src/Memory/MemoryOutputCacheStore.cs
Outdated
Show resolved
Hide resolved
src/Middleware/OutputCaching/src/Memory/MemoryOutputCacheStore.cs
Outdated
Show resolved
Hide resolved
Hi @sebastienros. Please make sure you've updated the PR description to use the Shiproom Template. Also, make sure this PR is not marked as a draft and is ready-to-merge. To learn more about how to prepare a servicing PR click here. |
@Pilchie approval requested. (updated issue template and tag) |
@halter73 would love your review since you discovered the bug |
src/Middleware/OutputCaching/src/Memory/MemoryOutputCacheStore.cs
Outdated
Show resolved
Hide resolved
src/Middleware/OutputCaching/src/Memory/MemoryOutputCacheStore.cs
Outdated
Show resolved
Hide resolved
src/Middleware/OutputCaching/src/Memory/MemoryOutputCacheStore.cs
Outdated
Show resolved
Hide resolved
src/Middleware/OutputCaching/src/Memory/MemoryOutputCacheStore.cs
Outdated
Show resolved
Hide resolved
src/Middleware/OutputCaching/src/Memory/MemoryOutputCacheStore.cs
Outdated
Show resolved
Hide resolved
Approved for .NET 7 RC2. |
@wtgodbe can you merge? (easier than finding the build team alias) |
Description:
When output cache entries are evicted, their keys are not removed from the tagged collections. This fixes it by using a post eviction callback.
Customer Impact
Non-breaking. Fixes potential memory leak.
Regression?
Risk
Verification
Packaging changes reviewed?