private void rollbackCurrentTx(){
  try {
    TxContext ctx=txCtx.get();
    if (ctx != null) {
      txCtx.remove();
      Transaction tx=cache.tx();
      if (tx != null)       tx.rollback();
    }
  }
 catch (  IgniteException e) {
    log.error("Failed to rollback cache transaction.",e);
  }
}

private void rollbackCurrentTx ( ) { try { TxContext ctx = txCtx . get ( ) ; if ( ctx != null ) { txCtx . remove ( ) ; Transaction tx = cache . tx ( ) ; if ( tx != null ) tx . rollback ( ) ; } } catch ( IgniteException e ) { log . error ( "Failed to rollback cache transaction." , e ) ; } }
roll backs current transaction .
