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

[stable8.2] Run cleanup of expired DB file locks to background job #22868

Merged
1 commit merged into from
Mar 4, 2016

Conversation

MorrisJobke
Copy link
Contributor

The old way fired a DELETE statement on each destruction of the
DBLockingProvider. Which could cause a lot of queries. It's enough
to run this every 5 minutes in a background job, which in the end
could result in file locks that exists 5 minutes longer - in the
worst case and for not properly released locks.

This makes the DB based locking a lot more performant and could
result in a similar performance to the Redis based locking provider.

Backport of #22865
General backport approval is in #22865 (comment)

@cmonteroluque @PVince81 @karlitschek I just put this into 8.2.4 for now. Feel free to merge this to 8.2.3 if this is fine for you and it is tested properly.

cc @LukasReschke @icewind1991 @DeepDiver1975 @rullzer

* fixes #22819

The old way fired a DELETE statement on each destruction of the
DBLockingProvider. Which could cause a lot of queries. It's enough
to run this every 5 minutes in a background job, which in the end
could result in file locks that exists 5 minutes longer - in the
worst case and for not properly released locks.

This makes the DB based locking a lot more performant and could
result in a similar performance to the Redis based locking provider.
@MorrisJobke MorrisJobke added this to the 8.2.4-next-maintenance milestone Mar 4, 2016
@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @icewind1991, @nickvergessen and @schiesbn to be potential reviewers

@MorrisJobke
Copy link
Contributor Author

I tested this with an upgrade from 8.2.2 and it works just fine.

@karlitschek
Copy link
Contributor

👍

@PVince81
Copy link
Contributor

PVince81 commented Mar 4, 2016

Tested, works 👍

@PVince81 PVince81 modified the milestones: 8.2.3-current-maintenance, 8.2.4-next-maintenance Mar 4, 2016
@PVince81
Copy link
Contributor

PVince81 commented Mar 4, 2016

Setting to 8.2.3 as discussed with @cmonteroluque

@icewind1991
Copy link
Contributor

Tested, looks good 👍

@MorrisJobke
Copy link
Contributor Author

@cmonteroluque The failing test could be ignored for stable8.2

ghost pushed a commit that referenced this pull request Mar 4, 2016
[stable8.2] Run cleanup of expired DB file locks to background job
@ghost ghost merged commit 0c03e7c into stable8.2 Mar 4, 2016
@MorrisJobke MorrisJobke deleted the stable8.2-backport-22865 branch March 4, 2016 20:24
@haffenloher haffenloher mentioned this pull request Mar 23, 2016
@lock
Copy link

lock bot commented Aug 7, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 7, 2019
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants