@Override
  public void setRollbackOnly() throws IllegalStateException, SystemException {
    gtx = tm.getGlobalTransaction();
    if (gtx == null) {
      String exception =
          "TransactionImpl::setRollbackOnly: No global transaction exists.";
      LogWriter writer = TransactionUtils.getLogWriter();
      if (writer.fineEnabled()) {
        writer.fine(exception);
      }
      throw new SystemException(exception);
    }
    gtx.setRollbackOnly();
  }
Sets the status of the Global Transaction associated with this transaction to be RollBack only

@see javax.transaction.Transaction#setRollbackOnly()
geode-core/src/main/java/org/apache/geode/internal/jta/TransactionImpl.java