@Override public void apply(IgniteInternalFuture<Long> fut) { assert fut.error() != null || fut.result() != null : fut; try { clearLocalFuture((GridDhtTxAbstractEnlistFuture)fut); GridNearTxQueryResultsEnlistResponse res = fut.error() == null ? createResponse(fut) : null; if (checkResponse(nodeId, res, fut.error())) sendNextBatches(nodeId); } catch (IgniteCheckedException e) { checkResponse(nodeId, null, e); } finally { CU.unwindEvicts(cctx); } } });
/** * @param nodeId Sender node id. * @param res Response. */ public void onResult(UUID nodeId, GridNearTxQueryResultsEnlistResponse res) { if (checkResponse(nodeId, res, res.error())) { Batch batch = batches.get(nodeId); if (batch != null && !F.isEmpty(batch.localBackupRows()) && res.dhtFutureId() != null) processBatchLocalBackupKeys(nodeId, batch.localBackupRows(), res.dhtVersion(), res.dhtFutureId()); else sendNextBatches(nodeId); } }
@Override public void apply(IgniteInternalFuture<Long> fut) { assert fut.error() != null || fut.result() != null : fut; try { clearLocalFuture((GridDhtTxAbstractEnlistFuture)fut); GridNearTxQueryResultsEnlistResponse res = fut.error() == null ? createResponse(fut) : null; if (checkResponse(nodeId, res, fut.error())) sendNextBatches(nodeId); } catch (IgniteCheckedException e) { checkResponse(nodeId, null, e); } finally { CU.unwindEvicts(cctx); } } });
/** * @param nodeId Sender node id. * @param res Response. */ public void onResult(UUID nodeId, GridNearTxQueryResultsEnlistResponse res) { if (checkResponse(nodeId, res, res.error())) { Batch batch = batches.get(nodeId); if (batch != null && !F.isEmpty(batch.localBackupRows()) && res.dhtFutureId() != null) processBatchLocalBackupKeys(nodeId, batch.localBackupRows(), res.dhtVersion(), res.dhtFutureId()); else sendNextBatches(nodeId); } }