You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Amit Jain (Jira)" <ji...@apache.org> on 2020/03/31 09:41:00 UTC

[jira] [Created] (OAK-8988) TarPersistence.lockRepostiory can indefinitely wait if another external process already running

Amit Jain created OAK-8988:
------------------------------

             Summary: TarPersistence.lockRepostiory can indefinitely wait if another external process already running
                 Key: OAK-8988
                 URL: https://issues.apache.org/jira/browse/OAK-8988
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: segment-tar
            Reporter: Amit Jain


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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)