}, retval, filter, remainingTime(), true);
return it.next(); }, retval, filter, remainingTime(), true);
/** {@inheritDoc} */ @Override public boolean onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner) { if (log.isDebugEnabled()) log.debug("Transaction future received owner changed callback: " + entry); if (tx.remainingTime() == -1) return false; if ((entry.context().isNear() || entry.context().isLocal()) && owner != null && tx.hasWriteKey(entry.txKey())) { if (keyLockFut != null) keyLockFut.onKeyLocked(entry.txKey()); return true; } return false; }
long timeout = remainingTime();
/** * Send batch request to remote data node. * * @param batchId Id of a batch mini-future. * @param nodeId Node id. * @param batchFut Mini-future for the batch. * @param clientFirst {@code true} if originating node is client and it is a first request to any data node. */ private void sendBatch(int batchId, UUID nodeId, Batch batchFut, boolean clientFirst) throws IgniteCheckedException { assert batchFut != null; GridNearTxQueryResultsEnlistRequest req = new GridNearTxQueryResultsEnlistRequest(cctx.cacheId(), threadId, futId, batchId, tx.subjectId(), topVer, lockVer, mvccSnapshot, clientFirst, remainingTime(), tx.remainingTime(), tx.taskNameHash(), batchFut.rows(), it.operation()); sendRequest(req, nodeId); }
/** * Send batch request to remote data node. * * @param batchId Id of a batch mini-future. * @param nodeId Node id. * @param batchFut Mini-future for the batch. * @param clientFirst {@code true} if originating node is client and it is a first request to any data node. */ private void sendBatch(int batchId, UUID nodeId, Batch batchFut, boolean clientFirst) throws IgniteCheckedException { assert batchFut != null; GridNearTxEnlistRequest req = new GridNearTxEnlistRequest(cctx.cacheId(), threadId, futId, batchId, tx.subjectId(), topVer, lockVer, mvccSnapshot, clientFirst, remainingTime(), tx.remainingTime(), tx.taskNameHash(), batchFut.rows(), it.operation(), needRes, keepBinary, filter ); sendRequest(req, nodeId); }
if (parent.tx.remainingTime() == -1 || res.error() instanceof IgniteTxTimeoutCheckedException) { parent.onTimeout(); parent.cctx.exchange().affinityReadyFuture(res.clientRemapVersion()); parent.cctx.time().waitAsync(affFut, parent.tx.remainingTime(), (e, timedOut) -> { if (parent.errorOrTimeoutOnTopologyVersion(e, timedOut)) return;
/** {@inheritDoc} */ @Override public void prepare() { if (!tx.state(PREPARING)) { if (tx.isRollbackOnly() || tx.setRollbackOnly()) { if (tx.remainingTime() == -1) onDone(tx.timeoutException()); else onDone(tx.rollbackException()); } else onDone(new IgniteCheckedException("Invalid transaction state for prepare " + "[state=" + tx.state() + ", tx=" + this + ']')); return; } try { tx.userPrepare(Collections.<IgniteTxEntry>emptyList()); cctx.mvcc().addFuture(this); preparePessimistic(); } catch (IgniteCheckedException e) { onDone(e); } }
cctx.time().waitAsync(topFut, tx.remainingTime(), (e, timedOut) -> { if (errorOrTimeoutOnTopologyVersion(e, timedOut)) return;
REPEATABLE_READ, false, tx.remainingTime(), -1, this.tx.subjectId(),
REPEATABLE_READ, false, tx.remainingTime(), -1, this.tx.subjectId(),
if (tx.remainingTime() == -1) onDone(tx.timeoutException()); else
parent.cctx.time().waitAsync(affFut, parent.tx.remainingTime(), new IgniteBiInClosure<IgniteCheckedException, Boolean>() { @Override public void apply(IgniteCheckedException e, Boolean timedOut) { if (parent.errorOrTimeoutOnTopologyVersion(e, timedOut))
cctx.time().waitAsync(fut, tx == null ? 0 : tx.remainingTime(), (e, timedOut) -> { if (errorOrTimeoutOnTopologyVersion(e, timedOut)) return;
log.debug("Before acquiring transaction lock on keys: " + keys); long timeout = remainingTime();
long timeout = tx.remainingTime();
long timeout = remainingTime();
if (tx != null && tx.remainingTime() == -1) { GridDhtColocatedLockFuture.this.onDone(false, tx.timeoutException());
cctx.time().waitAsync(fut, tx.remainingTime(), (e, timedOut) -> { try { if (e != null || timedOut)
cctx.shared().exchange().affinityReadyFuture(res.clientRemapVersion()); cctx.time().waitAsync(affFut, tx == null ? 0 : tx.remainingTime(), (e, timedOut) -> { if (errorOrTimeoutOnTopologyVersion(e, timedOut)) return;