Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8988

TarPersistence.lockRepostiory can indefinitely wait if another external process already running

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • segment-tar
    • None

    Description

      TarPersistence.lockRepostiory() [1] waits indefinitely when another segment tar process is already running and has acquired the lock already. The method should timeout if it fails to obtain a lock in a reasonable time (can be an internal value) or have alternative means ascertaining that another process already running e.g. by using mkdir().

      1 - https://github.com/apache/jackrabbit-oak/blob/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/TarPersistence.java#L92-L103

      Attachments

        Activity

          People

            Unassigned Unassigned
            amitj Amit Jain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: