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

Revert "FileConfigurationProvider.Dispose should dispose FileProvider when it owns it" #101609

Merged
merged 2 commits into from Apr 26, 2024

Conversation

adamsitnik
Copy link
Member

@adamsitnik adamsitnik commented Apr 26, 2024

Reverts #86455 as it introduced a bug: #95745

fixes #95745

@adamsitnik
Copy link
Member Author

/backport to release/8.0-staging

Copy link
Contributor

Started backporting to release/8.0-staging: https://github.com/dotnet/runtime/actions/runs/8850932380

Copy link
Member

@ericstj ericstj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for reverting this. I think it's the right call given we can't guarantee the right behavior for everyone.

We should make sure to reactivate #86146. I think the workaround mentioned in that issue is what we'd recommend folks use for now. Maybe we can work to update things like hosting/configuration to lead people to a use a single FileProvider and make sure its lifetime is managed.

@adamsitnik adamsitnik marked this pull request as ready for review April 26, 2024 17:47
@adamsitnik
Copy link
Member Author

We should make sure to reactivate #86146.

I've reopened the issue, unlocked the conversation and set the Milestone to 9.0.

@adamsitnik adamsitnik merged commit 2c99786 into main Apr 26, 2024
80 of 84 checks passed
@adamsitnik adamsitnik deleted the revert-86455-configLeak branch April 26, 2024 18:51
matouskozak pushed a commit to matouskozak/runtime that referenced this pull request Apr 30, 2024
… when it owns it" (dotnet#101609)

* Revert "FileConfigurationProvider.Dispose should dispose FileProvider when it…"

This reverts commit 63fad3c.

* Add test to ensure the bug does not come back
michaelgsharp pushed a commit to michaelgsharp/runtime that referenced this pull request May 9, 2024
… when it owns it" (dotnet#101609)

* Revert "FileConfigurationProvider.Dispose should dispose FileProvider when it…"

This reverts commit 63fad3c.

* Add test to ensure the bug does not come back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants