3 Replies Latest reply on Aug 26, 2004 4:00 PM by Uwe Lamprecht

    Removing node from cache causes problem (using LRUPolicy)

    Uwe Lamprecht Newbie

      I got the latest sources from CVS JBossCache1_0x and noticed following problem...

      Our test is adding and removing nodes in the cache, now i got multiple times the effect that LRUAlgorithm is processing a event - where the node referenced by the event is no longer existing in cache.

      A runtime exception is raised from some LRUAlgorithm-methods, other events in the queue are not processed, which causes overflow of queue, and blocking on TreeCache-API operations.

      Additionally the runtime exception is not caught in try/catch -block of EvictionTimerTask.run(), which seems to cause the end of the EvictionTimerTask...

      It should not be a problem to remove nodes in cache via TreeCache-API?