private boolean cannotSelectCurrentFileToNormalCompaction(TsFileResource resource) {
    return resource.getStatus() != TsFileResourceStatus.NORMAL
        || !resource.getTsFileRepairStatus().isNormalCompactionCandidate();
  }
This method searches for all files on the given level. If there are consecutive files on the
level that meet the system preset conditions (the number exceeds 10 or the total file size
exceeds 2G), a compaction task is created for the batch of files and placed in the
taskPriorityQueue queue , and continue to search for the next batch. If at least one batch of
files to be compacted is found on this layer, it will return false (indicating that it will no
longer search for higher layers), otherwise it will return true.

@param level the level to be searched
@return return whether to continue the search to higher levels
@throws IOException if the name of tsfile is incorrect
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/selector/impl/SizeTieredCompactionSelector.java