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.