jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1170) Repository lock keeps file open
Date Thu, 22 Nov 2007 00:37:43 GMT

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

Jukka Zitting updated JCR-1170:
-------------------------------

        Fix Version/s: 1.4
    Affects Version/s: 0.9
                       1.0
                       1.0.1
                       1.1
                       1.1.1
                       1.2.1
                       1.2.2
                       1.2.3
                       1.3
                       1.3.1
                       1.3.3

> 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
>    Affects Versions: 0.9, 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.3, 1.3.1, 1.3.3
>         Environment: Linux
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Minor
>             Fix For: 1.4
>
>
> 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.


Mime
View raw message