/** * @return {@code true} if related transaction is implicit. */ private boolean implicitTx() { return tx != null && tx.implicit(); }
if (!tx.implicit()) throw new IgniteCheckedException("Cannot access key within transaction if lock is " + "externally held [key=" + entry.key() + ", entry=" + entry + ']');
/** * @return {@code true} if related transaction is implicit. */ private boolean implicitTx() { return tx != null && tx.implicit(); }
true, tx.onePhaseCommit(), tx.needReturnValue() && tx.implicit(), tx.implicitSingle(), m.explicitLock(),
m.last(), tx.onePhaseCommit(), tx.needReturnValue() && tx.implicit(), tx.implicitSingle(), m.explicitLock(),
/** * Checks filter for non-pessimistic transactions. * * @param cctx Cache context. * @param key Key. * @param val Value. * @param filter Filter to check. * @return {@code True} if passed or pessimistic. */ private boolean filter( GridCacheContext cctx, KeyCacheObject key, CacheObject val, CacheEntryPredicate[] filter) { return pessimistic() || (optimistic() && implicit()) || isAll(cctx, key, val, filter); }
m.last(), tx.onePhaseCommit(), tx.needReturnValue() && tx.implicit(), tx.implicitSingle(), m.explicitLock(),
/** {@inheritDoc} */ @Override public final T apply(T t, @Nullable Exception e) { boolean rollback = true; try { if (e != null) throw new GridClosureException(e); t = finish(t); // Commit implicit transactions. if (implicit()) commit(); rollback = false; return t; } catch (IgniteCheckedException ex) { throw new GridClosureException(ex); } finally { if (rollback) setRollbackOnly(); } }
if (implicit()) try { commit();
if (tx != null && !tx.implicit() && !skipTx) { return asyncOp(tx, new AsyncOp<Map<K, V>>(keys) { @Override public IgniteInternalFuture<Map<K, V>> op(GridNearTxLocal tx, AffinityTopologyVersion readyTopVer) {
if (implicit()) { try { commit();
final boolean keepBinary ) { if (implicit()) {
/** * */ private void ackBackup() { if (mappings.empty()) return; if (!tx.needReturnValue() || !tx.implicit()) return; // GridCacheReturn was not saved at backup. GridDistributedTxMapping mapping = mappings.singleMapping(); if (mapping != null) { UUID nodeId = mapping.primary().id(); Collection<UUID> backups = tx.transactionNodes().get(nodeId); if (!F.isEmpty(backups)) { assert backups.size() == 1 : backups; UUID backupId = F.first(backups); ClusterNode backup = cctx.discovery().node(backupId); // Nothing to do if backup has left the grid. if (backup == null) { // No-op. } else if (backup.isLocal()) cctx.tm().removeTxReturn(tx.xidVersion()); else cctx.tm().sendDeferredAckResponse(backupId, tx.xidVersion()); } } }
if (!ctx.mvccEnabled() && tx != null && !tx.implicit() && !skipTx) { return asyncOp(tx, new AsyncOp<Map<K, V>>(keys) {
0, tx.activeCachesDeploymentEnabled(), !waitRemoteTxs && (tx.needReturnValue() && tx.implicit()), waitRemoteTxs, null,
if (!ctx.mvccEnabled() && tx != null && !tx.implicit() && !skipTx) { return asyncOp(tx, new AsyncOp<V>() { @Override public IgniteInternalFuture<V> op(GridNearTxLocal tx, AffinityTopologyVersion readyTopVer) {
Collections.<IgniteTxKey, GridCacheVersion>emptyMap(), req.last(), needReturnValue() && implicit());
if (tx == null || tx.implicit()) { boolean skipStore = ctx.skipStore(); // Save value of thread-local flag.
if (tx == null || tx.implicit()) { TransactionConfiguration tCfg = CU.transactionConfiguration(ctx, ctx.kernalContext().config());