public boolean needToReportToSystem() {
    boolean needToReport =
        memoryCost.get() - lastReportedSize.get() > storageGroupSizeReportThreshold
            || needToReportToSystem.get();
    // report once and then reset flag to false
    if (needToReportToSystem.get()) {
      needToReportToSystem.set(false);
    }
    return needToReport;
  }
When create a new TsFileProcessor, call this method
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegionInfo.java