3 Replies Latest reply on Jul 22, 2005 12:33 AM by ben.wang

    "Evicted" nodes still present

    newton

      I have an LRU eviction policy that to be working. When I turn on debug logging I can see the eviciton policy listerner waking up and trimming nodes. When a node has expired I can see_evict and _remove being called like this:

      2005-07-18 18:13:44,009 DEBUG [Timer-0] org.jboss.cache.TreeCache _remove (TreeCache.java:2464) - _remove(null, "/Bad/a/b/c/d")

      But, when I then try to retrieve an object from "Bad/a/b/c/d", it is still there and I can retrieve it. Why is it still there?

      This is with only one instance running in the cluster. Note I am not using transactions at all.

      M.

        • 1. Re:

          are you using cache loader? If you are, eviction only evict the in-memory copy. You still have the data persisted.

          -Ben

          • 2. Re:
            newton

            Yeah, I'm using the FileCacheLoader, unshared. So how do I get the stuff to be deleted from there when it expires?

            • 3. Re:

              If you are using CacheLoader you saying that you want the data to be persistent. In that case, only manually remove will do the trick.

              -Ben