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

occ command to clear all locks #24494

Closed
PVince81 opened this issue May 9, 2016 · 8 comments
Closed

occ command to clear all locks #24494

PVince81 opened this issue May 9, 2016 · 8 comments

Comments

@PVince81
Copy link
Contributor

PVince81 commented May 9, 2016

In some OC versions like OC < 9.0.2 in can happen that the database contains stray locks due to bugs.

We should write a repair step that clears these stray locks at update time.

@icewind1991 let's do this in the hardening phase of 9.1

CC @cmonteroluque

@ghost
Copy link

ghost commented May 9, 2016

Fixes #21360

@simsala
Copy link

simsala commented May 11, 2016

Still happening in version 9.0.2.
Lock table just keeps on growing and is never cleared.

@simsala
Copy link

simsala commented May 25, 2016

Related to #20380 and #24507
Seeing both effects on my 9.0.2.
Details here and config can be found here:#20380

So this is affecting OC ≤ 9.0.2.

@PVince81
Copy link
Contributor Author

@icewind1991 please have a look why there are still stray locks

@PVince81
Copy link
Contributor Author

PR here #25064

@PVince81 PVince81 modified the milestones: 9.1-current, 9.2-next Jun 14, 2016
@PVince81
Copy link
Contributor Author

Closing due to #25064 (comment)

The TTL should already take care of this.
If the TTL doesn't work it's a different issue, there are already otherreports of stray locks staying longer than necessary.

@mdonges
Copy link

mdonges commented Apr 13, 2017

is it possible to trigger the repair step manually?

e.g via a new feature as
occ files:release-stary-locks

or ist there already an existing way?

I updated my instance to 9.1.4 but still could not get rid of the locks....

@PVince81
Copy link
Contributor Author

An occ command is a good idea.

But a lock cannot be detected as stray as long as its timeout hasn't been reached.
So the command would rather clear ALL locks and should be run in maintenance mode to avoid disrupting transfers that might be in progress.

@PVince81 PVince81 reopened this Apr 13, 2017
@PVince81 PVince81 changed the title Repair step to clear file locks in DB occ command to clear all locks Apr 13, 2017
@PVince81 PVince81 modified the milestones: backlog, 10.0 Apr 13, 2017
@PVince81 PVince81 removed their assignment Nov 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants