public synchronized void registerSealedTsFileResource(TsFileResource tsFileResource) {
    if (!sealedTsFileResources.contains(tsFileResource)) {
      sealedTsFileResources.add(tsFileResource);
      memoryBlock.forceAllocateWithoutLimitation(tsFileResource.calculateRamSize());
      chooseTsFileResourceToDegrade();
    }
  }
add the closed TsFileResource into priorityQueue and increase memory cost of timeIndex, once
memory cost is larger than threshold, degradation is triggered.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/rescon/memory/TsFileResourceManager.java