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/7.0] Move taking of lock earlier to avoid race in PruneCallback #30098

Merged
merged 2 commits into from
Feb 7, 2023

Conversation

ajcvickers
Copy link
Member

@ajcvickers ajcvickers commented Jan 19, 2023

This is a port of #30080
Fixes #29952

Description

The field _idlePoolGroups was being used outside the lock.

Customer impact

ArgumentOutOfRangeException exceptions when using Microsoft.Data.Sqlite, even without connection pooling.

How found

Multiple customer reports on 7.0.

Regression

No.

Testing

Manual testing.

Risk

Low; simple move of the lock area, and a quirk was added to revert back to older behavior.

@ajcvickers ajcvickers requested a review from a team January 19, 2023 17:59
@ajcvickers ajcvickers added this to the 7.0.x milestone Jan 19, 2023
@ajcvickers ajcvickers changed the title Move taking of lock earlier to avoid race in PruneCallback [release/7.0] Move taking of lock earlier to avoid race in PruneCallback Jan 19, 2023
@ajcvickers
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dougbu dougbu merged commit 0285a7b into release/7.0 Feb 7, 2023
@dougbu dougbu deleted the DontWaitToEatYourPrunes0119 branch February 7, 2023 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants