/** * * @param e Entry to evict if it qualifies for eviction. * @param obsoleteVer Obsolete version. * @param topVer Topology version. * @return {@code True} if attempt was made to evict the entry. */ protected boolean evictNearEntry(GridCacheEntryEx e, GridCacheVersion obsoleteVer, AffinityTopologyVersion topVer) { assert e != null; assert obsoleteVer != null; if (isNearLocallyMapped(e, topVer)) { if (log.isDebugEnabled()) log.debug("Evicting dht-local entry from near cache [entry=" + e + ", tx=" + this + ']'); if (e.markObsolete(obsoleteVer)) return true; } return false; }
/** * @param key Key */ private void obsoleteNearEntry(KeyCacheObject key) { GridCacheEntryEx nearEntry = near().peekEx(key); if (nearEntry != null) nearEntry.markObsolete(ctx.versions().next()); }
/** * @param e Entry to evict if it qualifies for eviction. * @param primaryOnly Flag to try to evict only on primary node. * @return {@code True} if attempt was made to evict the entry. */ protected boolean evictNearEntry(IgniteTxEntry e, boolean primaryOnly) { assert e != null; if (isNearLocallyMapped(e, primaryOnly)) { GridCacheEntryEx cached = e.cached(); assert cached instanceof GridNearCacheEntry : "Invalid cache entry: " + e; if (log.isDebugEnabled()) log.debug("Evicting dht-local entry from near cache [entry=" + cached + ", tx=" + this + ']'); if (cached != null && cached.markObsolete(xidVer)) return true; } return false; }
if (entry != null && entry.markObsolete(ver)) removeEntry(entry);
if (!e.valid(topVer) && e.markObsolete(obsoleteVer)) near.removeEntry(e);
if (cacheCtx.isNear()) { if (cacheCtx.affinity().partitionBelongs(cacheCtx.localNode(), entry.partition(), topVer)) { if (entry.markObsolete(xidVer)) cacheCtx.cache().removeEntry(entry);
GridCacheEntryEx entry = peekEx(key); if (entry != null && entry.markObsolete(ver)) removeEntry(entry);
cached.markObsolete(xidVer);
cached.markObsolete(xidVer);
/** * * @param e Entry to evict if it qualifies for eviction. * @param obsoleteVer Obsolete version. * @param topVer Topology version. * @return {@code True} if attempt was made to evict the entry. */ protected boolean evictNearEntry(GridCacheEntryEx e, GridCacheVersion obsoleteVer, AffinityTopologyVersion topVer) { assert e != null; assert obsoleteVer != null; if (isNearLocallyMapped(e, topVer)) { if (log.isDebugEnabled()) log.debug("Evicting dht-local entry from near cache [entry=" + e + ", tx=" + this + ']'); if (e.markObsolete(obsoleteVer)) return true; } return false; }
/** * @param key Key */ private void obsoleteNearEntry(KeyCacheObject key) { GridCacheEntryEx nearEntry = near().peekEx(key); if (nearEntry != null) nearEntry.markObsolete(ctx.versions().next()); }
/** * @param e Entry to evict if it qualifies for eviction. * @param primaryOnly Flag to try to evict only on primary node. * @return {@code True} if attempt was made to evict the entry. */ protected boolean evictNearEntry(IgniteTxEntry e, boolean primaryOnly) { assert e != null; if (isNearLocallyMapped(e, primaryOnly)) { GridCacheEntryEx cached = e.cached(); assert cached instanceof GridNearCacheEntry : "Invalid cache entry: " + e; if (log.isDebugEnabled()) log.debug("Evicting dht-local entry from near cache [entry=" + cached + ", tx=" + this + ']'); if (cached != null && cached.markObsolete(xidVer)) return true; } return false; }
if (entry != null && entry.markObsolete(ver)) removeEntry(entry);
if (!e.valid(topVer) && e.markObsolete(obsoleteVer)) near.removeEntry(e);
if (cacheCtx.isNear()) { if (cacheCtx.affinity().partitionBelongs(cacheCtx.localNode(), entry.partition(), topVer)) { if (entry.markObsolete(xidVer)) cacheCtx.cache().removeEntry(entry);
GridCacheEntryEx entry = peekEx(key); if (entry != null && entry.markObsolete(ver)) removeEntry(entry);
cached.markObsolete(xidVer);
cached.markObsolete(xidVer);