Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-56

[VFS] SoftRefFilesCache does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • Operating System: Windows XP
      Platform: PC

    • 33256

    Description

      The SoftRefFilesCache does not work.

      It's not it's fault but it goes more about the principal that garbage
      collection happens every 2 or 3 seconds and that it removes some of the files in
      the cache and this produce an inconsistent cache.

      This is particulary true when listing the content of a zip/jar file, the first
      read seems ok then some files disappear until eventually the directory get empty
      .

      I know about the small article about soft reference in cache wrote in Javalobby
      but I disagree with it and this prove that caching using soft reference does
      not work for caching.

      Please change the DefaultFileSystem to use the DefaultFilesCache, I did it, now
      it works much better.

      Attachments

        Activity

          People

            Unassigned Unassigned
            anthony.goubard@wanadoo.nl Anthony Goubard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: