/** * @param nodeId Node ID. * @param res Response. */ private void processPrepareResponse(UUID nodeId, GridNearTxPrepareResponse<K, V> res) { GridNearTxPrepareFuture<K, V> fut = (GridNearTxPrepareFuture<K, V>) ctx.mvcc().<GridCacheTxEx<K, V>>future(res.version().id(), res.futureId()); if (fut == null) { if (log.isDebugEnabled()) log.debug( "Failed to find future for prepare response [sender=" + nodeId + ", res=" + res + ']'); return; } fut.onResult(nodeId, res); }