Uploaded image for project: 'JBoss VFS'
  1. JBoss VFS
  2. JBVFS-134

IterableTimedVFSCache doesn't cache entries once they get expired

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.2.0.GA
    • 2.1.3.SP1
    • None
    • None

      When resolving virtual files,

      1. DefaultVFSRegistry checks expiration of root context by IterableTimedVFSCache.findContext() which is implemented based on TimedCachePolicy.getValidKeys()
      2. If the context is expired, a new context is created and CachePolicyVFSCache.putContext() is called, but the method checks the existence of cache entry by TimedCachePolicy.peek() which doesn't care about its expiration. Then the new entry won't be inserted into the cache and the expiration time of the old entry won't be updated.

      So once cache entries are expired, caching won't work and contexts will be created again and again.

              ajustin@redhat.com Ales Justin
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: