@Override
  public long getGlobalFlushedTime(IDeviceID path) {
    // If TsFileResource is not fully recovered, we should return Long.MAX_VALUE
    // to avoid create Last cache entry
    if (!StorageEngine.getInstance().isReadyForNonReadWriteFunctions()) {
      return Long.MAX_VALUE;
    }
    return globalLatestFlushedTimeForEachDevice.getOrDefault(path, Long.MIN_VALUE);
  }
record memory cost of map for each partitionId
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/HashLastFlushTimeMap.java