public void compactFileTimeIndexCache() {
    int currentResourceSize = size(true) + size(false);
    readLock();
    try {
      FileTimeIndexCacheRecorder.getInstance()
          .compactFileTimeIndexIfNeeded(
              storageGroupName,
              Integer.parseInt(dataRegionId),
              currentResourceSize,
              sequenceFiles,
              unsequenceFiles);
    } finally {
      readUnlock();
    }
  }
This method is called after compaction to update memory.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/tsfile/TsFileManager.java