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] Created: (JCR-1170) Repository lock keeps file open
Date Wed, 10 Oct 2007 12:48:51 GMT
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 is:

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