/** {@inheritDoc} */ @Override public void unwindEvicts(GridCacheSharedContext cctx) { if (entry == null || entry.isEmpty()) return; assert entry.size() == 1; GridCacheContext ctx = cctx.cacheContext(entry.get(0).cacheId()); if (ctx != null) CU.unwindEvicts(ctx); }
/** * @param cacheId Cache ID. * @param txMap Transactions map. */ private void rollbackTransactionsForCache(int cacheId, ConcurrentMap<?, IgniteInternalTx> txMap) { for (Map.Entry<?, IgniteInternalTx> e : txMap.entrySet()) { IgniteInternalTx tx = e.getValue(); for (IgniteTxEntry entry : tx.allEntries()) { if (entry.cacheId() == cacheId) { rollbackTx(tx, false, false); break; } } } }
/** {@inheritDoc} */ @Override public void unwindEvicts(GridCacheSharedContext cctx) { if (entry == null) return; GridCacheContext ctx = cctx.cacheContext(entry.cacheId()); if (ctx != null) CU.unwindEvicts(ctx); }
/** * Checks if this transaction needs previous value for the given tx entry. Will use passed in map to store * required key or will create new map if passed in map is {@code null}. * * @param e TX entry. * @param map Map with needed preload keys. * @return Map if it was created. */ private Map<Integer, Collection<KeyCacheObject>> checkNeedRebalanceKeys( IgniteTxEntry e, Map<Integer, Collection<KeyCacheObject>> map ) { if (retVal || !F.isEmpty(e.entryProcessors()) || !F.isEmpty(e.filters()) || e.entryReadVersion() != null) { if (map == null) map = new HashMap<>(); Collection<KeyCacheObject> keys = map.get(e.cacheId()); if (keys == null) { keys = new ArrayList<>(); map.put(e.cacheId(), keys); } keys.add(e.key()); } return map; }
IgniteTxEntry e = it.next(); GridCacheContext<?, ?> cacheCtx = ctx.cacheContext(e.cacheId());
StringBuilder b = new StringBuilder(); b.append("TxEntry [cacheId=").append(bad.cacheId()). append(", key=").append(bad.key()). append(", queue=").append(qSize).
IgniteTxEntry entry = it.next(); int[] invalidParts = invalidPartsMap.get(entry.cacheId());
if (entry.cacheId() == cacheId) { fail = true;
/** {@inheritDoc} */ @Override public void unwindEvicts(GridCacheSharedContext cctx) { if (entry == null || entry.isEmpty()) return; assert entry.size() == 1; GridCacheContext ctx = cctx.cacheContext(entry.get(0).cacheId()); if (ctx != null) CU.unwindEvicts(ctx); }
/** * @param cacheId Cache ID. * @param txMap Transactions map. */ private void rollbackTransactionsForCache(int cacheId, ConcurrentMap<?, IgniteInternalTx> txMap) { for (Map.Entry<?, IgniteInternalTx> e : txMap.entrySet()) { IgniteInternalTx tx = e.getValue(); for (IgniteTxEntry entry : tx.allEntries()) { if (entry.cacheId() == cacheId) { rollbackTx(tx, false, false); break; } } } }
/** {@inheritDoc} */ @Override public void unwindEvicts(GridCacheSharedContext cctx) { if (entry == null) return; GridCacheContext ctx = cctx.cacheContext(entry.cacheId()); if (ctx != null) CU.unwindEvicts(ctx); }
/** * Checks if this transaction needs previous value for the given tx entry. Will use passed in map to store * required key or will create new map if passed in map is {@code null}. * * @param e TX entry. * @param map Map with needed preload keys. * @return Map if it was created. */ private Map<Integer, Collection<KeyCacheObject>> checkNeedRebalanceKeys( IgniteTxEntry e, Map<Integer, Collection<KeyCacheObject>> map ) { if (retVal || !F.isEmpty(e.entryProcessors()) || !F.isEmpty(e.filters()) || e.entryReadVersion() != null) { if (map == null) map = new HashMap<>(); Collection<KeyCacheObject> keys = map.get(e.cacheId()); if (keys == null) { keys = new ArrayList<>(); map.put(e.cacheId(), keys); } keys.add(e.key()); } return map; }
IgniteTxEntry e = it.next(); GridCacheContext<?, ?> cacheCtx = ctx.cacheContext(e.cacheId());
StringBuilder b = new StringBuilder(); b.append("TxEntry [cacheId=").append(bad.cacheId()). append(", key=").append(bad.key()). append(", queue=").append(qSize).
IgniteTxEntry entry = it.next(); int[] invalidParts = invalidPartsMap.get(entry.cacheId());