History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CACHE-119
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andres March
Reporter: William Hoyle
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OSCache

flush does not work correctly in a clustered environment

Created: 27/Oct/04 04:43 PM   Updated: 23/Jan/05 04:58 PM
Component/s: Base Classes
Affects Version/s: None
Fix Version/s: 2.1


 Description  « Hide
When a key is flushed for a non-existent entry the flush is not propagated to other nodes in a cluster.

The event should be broadcast to ensure that nodes which _do_ have an entry for the key are notified that they have stale data.

The problem is in Cache.flushEntry (note the TODO):

if (!entry.isNew()) {
            // Update the entry's state in the map
            cacheMap.put(key, entry);

// Trigger an ENTRY_FLUSHED event
            CacheEntryEvent event = new CacheEntryEvent(this, entry, origin);
            dispatchCacheEntryEvent(CacheEntryEventType.ENTRY_FLUSHED, event);
        } else {
            // The entry did not exist in the cache anyway, nothing to flush
            // TODO: Do we need an event for this?
        }

 All   Comments   Change History      Sort Order:
Andres March - [14/Jan/05 07:37 PM ]
Done in CVS