
|
If you were logged in you would be able to see more operations.
|
|
|
OSCache
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
|
|
|
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?
}
|
|
Description
|
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?
} |
Show » |
|