[
https://issues.apache.org/jira/browse/VFS-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14213872#comment-14213872
]
Bernd Eckenfels edited comment on VFS-545 at 11/16/14 7:34 AM:
---------------------------------------------------------------
Commited a Fix:
[VFS-545] Remove and avoid FileSystems in cache. Add/fix Javadoc, added
Unittests.
core\src\main\java\org\apache\commons\vfs2\cache\AbstractFilesCache.java
core\src\main\java\org\apache\commons\vfs2\cache\DefaultFilesCache.java
core\src\main\java\org\apache\commons\vfs2\cache\LRUFilesCache.java
core\src\main\java\org\apache\commons\vfs2\cache\NullFilesCache.java
core\src\main\java\org\apache\commons\vfs2\cache\SoftRefFilesCache.java
core\src\test\java\org\apache\commons\vfs2\cache\LRUFilesCacheTests.java
core\src\test\java\org\apache\commons\vfs2\cache\NullFilesCacheTests.java
core\src\test\java\org\apache\commons\vfs2\test\CacheTestSuite.java
src\changes\changes.xml
Revision 1639972
(and Revision 1639974 and 1639975)
was (Author: b.eckenfels):
Commited a Fix:
[VFS-545] Remove and avoid FileSystems in cache. Add/fix Javadoc, added
Unittests.
core\src\main\java\org\apache\commons\vfs2\cache\AbstractFilesCache.java
core\src\main\java\org\apache\commons\vfs2\cache\DefaultFilesCache.java
core\src\main\java\org\apache\commons\vfs2\cache\LRUFilesCache.java
core\src\main\java\org\apache\commons\vfs2\cache\NullFilesCache.java
core\src\main\java\org\apache\commons\vfs2\cache\SoftRefFilesCache.java
core\src\test\java\org\apache\commons\vfs2\cache\LRUFilesCacheTests.java
core\src\test\java\org\apache\commons\vfs2\cache\NullFilesCacheTests.java
core\src\test\java\org\apache\commons\vfs2\test\CacheTestSuite.java
src\changes\changes.xml
Revision 1639972
> DefaultFilesCache leaks closed filesystems
> ------------------------------------------
>
> Key: VFS-545
> URL: https://issues.apache.org/jira/browse/VFS-545
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Bernd Eckenfels
> Assignee: Bernd Eckenfels
> Priority: Minor
> Labels: leak
> Fix For: 2.1
>
>
> The org.apache.commons.vfs2.cache.DefaultFilesCache does not remove the
> filesystem specific cache if a filesystem gets cleared. This leads to the
> problem that instances if the FileSystem kept alive after the FileProvider
> has closed the filesystem. This is not so much a problem for a smaller number
> of filesystems configured for a prefix, but it is a problem for layered or
> virtual filesystems which get created and destroyed. (See also VFS-544). The
> more advanced filesystem caches support clearing the keys (but have other
> races I think).
> The behaviour is somewhat documented "lifetime of the FileSystemManager", but
> I don't think it is expected or required.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)