EHC ❯ Cache.remove doesn't fire listeners if element didn't exist
-
Bug
-
Status: Closed
-
-
Resolution: Fixed
-
-
-
drb
-
Reporter: sourceforgetracker
-
September 21, 2009
-
0
-
Watchers: 0
-
September 22, 2009
-
September 22, 2009
Description
Major problem with clustering!!!
Cache.java:
private synchronized boolean remove (Object key, boolean expiry, boolean notifyListeners, boolean doNotNotifyCacheReplicators) throws IllegalStateException, CacheException;
__________________________________________________
Element elementFromMemoryStore; elementFromMemoryStore = memoryStore.remove(key); if (elementFromMemoryStore != null) { // <- ERROR if (notifyListeners) { if (expiry) { registeredEventListeners.notifyElementExpiry (elementFromMemoryStore, doNotNotifyCacheReplicators); } else { registeredEventListeners.notifyElementRemoved (elementFromMemoryStore, doNotNotifyCacheReplicators); } } removed = true; } // <- ERROR
__________________________________________________
This bug affects distributed caches that use invalidation instead of replication.
Sourceforge Ticket ID: 1524597 - Opened By: nobody - 18 Jul 2006 15:19 UTC
Re-opening so that I can properly close out these issues and have correct Resolution status in Jira