public void flushAndClearDeviceIsAlignedCacheIfNecessary() throws SemanticException {
    // avoid OOM when loading a tsfile with too many timeseries
    // or loading too many tsfiles at the same time
    schemaCache.clearDeviceIsAlignedCacheIfNecessary();
  }
This can only be invoked after all timeseries in the current tsfile have been processed.
Otherwise, the isAligned status may be wrong.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/load/TreeSchemaAutoCreatorAndVerifier.java