Skip to content

occ command to clear all locks #24494

Closed
Closed

Description

@PVince81

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

Activity

  1. added this to the milestone on May 9, 2016
  2. simsala commented on May 11, 2016

    @simsala

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

  3. simsala commented on May 25, 2016

    @simsala

    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.

  4. PVince81 commented on May 25, 2016

    @PVince81
    ContributorAuthor

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

  5. self-assigned this
    on Jun 10, 2016
  6. PVince81 commented on Jun 10, 2016

    @PVince81
    ContributorAuthor

    PR here #25064

  7. modified the milestones: , on Jun 14, 2016
  8. PVince81 commented on Aug 18, 2016

    @PVince81
    ContributorAuthor

    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.

  9. mdonges commented on Apr 13, 2017

    @mdonges

    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....

  10. PVince81 commented on Apr 13, 2017

    @PVince81
    ContributorAuthor

    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.

  11. changed the title [-]Repair step to clear file locks in DB[/-] [+]occ command to clear all locks[/+] on Apr 13, 2017
  12. modified the milestones: backlog, 10.0 on Apr 13, 2017
  13. removed their assignment
    on Nov 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions