private void openTransaction(HiveTxnManager txnMgr) throws LockException, CommandProcessorException {
    if (txnMgr.isTxnOpen() || !DriverUtils.checkConcurrency(driverContext)
        || !startImplicitTxn()) {
      return;
    }
    TxnType txnType = AcidUtils.getTxnType(driverContext.getConf(), tree);
    driverContext.setTxnType(txnType);
    
    HiveOperation hiveOperation = queryState.getHiveOperation();
    if ((HiveOperation.REPLDUMP == hiveOperation || HiveOperation.REPLLOAD == hiveOperation) 
          && !context.isExplainPlan()) {
      context.setReplPolicy(PlanUtils.stripQuotes(tree.getChild(0).getText()));
    }
    String userFromUGI = DriverUtils.getUserFromUGI(driverContext);
    txnMgr.openTxn(context, userFromUGI, txnType);
  }
Last repl id should be captured before opening txn by current REPL DUMP operation.
This is needed to avoid losing data which are added/modified by concurrent txns when bootstrap
dump in progress.
@param conf Query configurations
@throws HiveException
@throws TException
ql/src/java/org/apache/hadoop/hive/ql/Compiler.java