@Override
  @RetrySemantics.Idempotent
  @Deprecated
  public long findMinTxnIdSeenOpen() {
    if (!ConfVars.useMinHistoryLevel() || ConfVars.useMinHistoryWriteId()) {
      return Long.MAX_VALUE;
    }
    try {
      Long minId = jdbcResource.getJdbcTemplate().queryForObject("SELECT MIN(\"MHL_MIN_OPEN_TXNID\") FROM \"MIN_HISTORY_LEVEL\"",
          new MapSqlParameterSource(), Long.class);
      return minId == null ? Long.MAX_VALUE : minId;
    } catch (DataAccessException e) {
      if (dbProduct.isTableNotExistsError(e)) {
        ConfVars.setUseMinHistoryLevel(false);
        return Long.MAX_VALUE;
      }
      LOG.error("Unable to execute findMinTxnIdSeenOpen", e);
      throw e;
    }
  }
Returns the min txnid seen open by any active transaction
@deprecated remove when min_history_level is dropped
@return txnId
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java