jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-1170) Repository lock keeps file open
Date Wed, 10 Oct 2007 13:23:50 GMT

     [ https://issues.apache.org/jira/browse/JCR-1170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Thomas Mueller resolved JCR-1170.

    Resolution: Fixed

Revision 31357: Now the RandomAccessFile is closed when locking failed and when unlocking.

> Repository lock keeps file open
> -------------------------------
>                 Key: JCR-1170
>                 URL: https://issues.apache.org/jira/browse/JCR-1170
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-core
>         Environment: Linux
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Minor
> The RepositoryLock opens a RandomAccessFile, but does not close it. The problematic line
> lock = new RandomAccessFile(file, "rw").getChannel().tryLock();
> This is usually not a problem as the file will be closed when the RandomAccessFile object
is garbage collected. However, if called a lot in a short time frame, this results in 'too
many open files' in some environments (for example Linux). 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message