NPE fixed in transactions
@@ -3916,6 +3916,15 @@ public class GridNearTxLocal extends GridDhtTxLocalAdapter implements GridTimeou
throw new GridClosureException(e);
}
+ if (isRollbackOnly()) {
+ if (timedOut())
+ throw new GridClosureException(new IgniteTxTimeoutCheckedException(
+ "Transaction has been timed out: " + GridNearTxLocal.this));
+ else
+ throw new GridClosureException(new IgniteTxRollbackCheckedException(
+ "Transaction has been rolled back: " + GridNearTxLocal.this));
+ }
+
return map;
}
},
