Unnecessary synchronous rollback in GridDhtTxLocal.prepareAsync
@@ -416,19 +416,6 @@ public class GridDhtTxLocal extends GridDhtTxLocalAdapter implements GridCacheMa
setRollbackOnly();
fut.onError(new IgniteTxRollbackCheckedException("Failed to prepare transaction: " + this, e));
-
- try {
- rollbackDhtLocal();
- }
- catch (IgniteTxOptimisticCheckedException e1) {
- if (log.isDebugEnabled())
- log.debug("Failed optimistically to prepare transaction [tx=" + this + ", e=" + e1 + ']');
-
- fut.onError(e);
- }
- catch (IgniteCheckedException e1) {
- U.error(log, "Failed to rollback transaction: " + this, e1);
- }
}
return chainOnePhasePrepare(fut);
