void recordValidWriteIds() throws LockException {
    String txnString = driverContext.getConf().get(ValidTxnList.VALID_TXNS_KEY);
    if (Strings.isNullOrEmpty(txnString)) {
      throw new IllegalStateException("calling recordValidWriteIds() without initializing ValidTxnList " +
          JavaUtils.txnIdToString(driverContext.getTxnManager().getCurrentTxnId()));
    }
    ValidTxnWriteIdList txnWriteIds = getTxnWriteIds(txnString);
    setValidWriteIds(txnWriteIds);
    
    if ((!driverContext.isRetrial() || driverContext.isOutdatedTxn()) 
          && !SessionState.get().isCompaction()) {
      driverContext.getTxnManager().addWriteIdsToMinHistory(driverContext.getPlan(), txnWriteIds);
    }
    LOG.debug("Encoding valid txn write ids info {}, txnid: {}", txnWriteIds.toString(),
        driverContext.getTxnManager().getCurrentTxnId());
  }
Write the current set of valid write ids for the operated acid tables into the configuration so
 that it can be read by the input format.
ql/src/java/org/apache/hadoop/hive/ql/DriverTxnHandler.java