@Override
  public RangeResponse isWriteIdRangeAborted(long minWriteId, long maxWriteId) {
    // check the easy cases first
    if (highWatermark < minWriteId) {
      return RangeResponse.NONE;
    }

    int count = 0;  // number of aborted txns found in exceptions

    // traverse the aborted txns list, starting at first aborted txn index
    for (int i = abortedBits.nextSetBit(0); i >= 0; i = abortedBits.nextSetBit(i + 1)) {
      long abortedTxnId = exceptions[i];
      if (abortedTxnId > maxWriteId) {  // we've already gone beyond the specified range
        break;
      }
      if (abortedTxnId >= minWriteId && abortedTxnId <= maxWriteId) {
        count++;
      }
    }

    if (count == 0) {
      return RangeResponse.NONE;
    } else if (count == (maxWriteId - minWriteId + 1)) {
      return RangeResponse.ALL;
    } else {
      return RangeResponse.SOME;
    }
  }
We cannot use a base file if its range contains an open write id.
@param writeId from base_xxxx
storage-api/src/java/org/apache/hadoop/hive/common/ValidReaderWriteIdList.java