Clearing the cache
drosenbaum Feb 27, 2006 2:37 PMI used the following code to remove all the nodes (all parents and children) in a TreeCache:
TreeCache cache = .... Fqn root = cache.get("/").getFqn(); cache.remove(root);
However shortly after this I get messages such as the following in the logs:
[QW]21 Feb 2006 11:00:29,012 WARN org.jboss.cache.eviction.LRUAlgorithm - DataNode not found with this fqn: //org/ifmc/qies/qw/data/po/QwDataGrpVw Could have been evicted earlier already [QW]21 Feb 2006 11:00:29,037 ERROR org.jboss.cache.eviction.EvictionTimerTask - run(): error processing eviction with exception: org.jboss.cache.eviction.EvictionException: internal error. Can't find fqn in nodeMap. fqn: //org/ifmc/qies/qw/data/po/QwDataGrpVw will reset the eviction queue list. [QW]21 Feb 2006 11:00:29,047 WARN org.jboss.cache.eviction.LRUAlgorithm - DataNode not found with this fqn: //org/ifmc/qies/qw/data/po/QwUserDfltOptn Could have been evicted earlier already [QW]21 Feb 2006 11:00:29,047 ERROR org.jboss.cache.eviction.EvictionTimerTask - run(): error processing eviction with exception: org.jboss.cache.eviction.EvictionException: internal error. Can't find fqn in nodeMap. fqn: //org/ifmc/qies/qw/data/po/QwUserDfltOptn will reset the eviction queue list. [QW]21 Feb 2006 11:00:29,053 WARN org.jboss.cache.eviction.LRUAlgorithm - DataNode not found with this fqn: //org/ifmc/qies/qw/data/po/QwUserVw Could have been evicted earlier already [QW]21 Feb 2006 11:00:29,054 ERROR org.jboss.cache.eviction.EvictionTimerTask - run(): error processing eviction with exception: org.jboss.cache.eviction.EvictionException: internal error. Can't find fqn in nodeMap. fqn: //org/ifmc/qies/qw/data/po/QwUserVw will reset the eviction queue list.
Is this an improper way to clear the cache? Is so, what is the correct method? And what are the consequences (if any) of having these log messages, would this cause a memory leak or anything else or are these benign messages and can be ignored?
Thank you,
Daniel