Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Apr 26, 2024

Backport of #101609 to release/8.0-staging

/cc @adamsitnik

Customer Impact

Regression

Testing

To ensure that the bug is not introduced again, an automated test was added, and it's passing.

Risk

Medium: this PR reverts a PR (#86455) that introduced this particular bug. But that PR has solved a resource leak (#86146), so by reverting it we re-introduce the leak. FWIW the leak was reported only by one user from tests and had zero upvotes (at the moment of writing this description) and it is unlikely to affect many applications (most apps create one builder per app lifetime). The leak was not a regression from .NET 6 or any previous release (the current APIs don't really solve the problem of ownership and disposal, example: #86456).

It's possible to workaround (#95745 (comment)) the bug, but only in scenario, where the user owns the code that calls the configuration method. If they don't (example: call R9 that calls this method), it's impossible.

IMO the proper fix is going to require new public APIs (sample approach: #100642) or breaking changes.
Because of that I've provided an ugly fix: #100641, but it got rejected.

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-extensions-filesystem
See info in area-owners.md if you want to be subscribed.

@adamsitnik adamsitnik force-pushed the backport/pr-101609-to-release/8.0-staging branch from 1750194 to e84db1f Compare April 26, 2024 16:44
@adamsitnik adamsitnik added the Servicing-consider Issue for next servicing release review label Apr 26, 2024
@ericstj
Copy link
Member

ericstj commented Apr 29, 2024

We need package authoring for this one.

@ericstj ericstj added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Apr 29, 2024
@ericstj
Copy link
Member

ericstj commented Apr 29, 2024

Packaging changes made. Marked as approved per email

@ericstj ericstj requested a review from tarekgh April 30, 2024 15:24
@ericstj ericstj merged commit 1907984 into release/8.0-staging Apr 30, 2024
@jkotas jkotas deleted the backport/pr-101609-to-release/8.0-staging branch May 6, 2024 00:48
@github-actions github-actions bot locked and limited conversation to collaborators Jun 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants