@Override
  public void close() {
    if (isClosed.compareAndSet(false, true)) {
      try {
        releaseAllMemory();
      } catch (Exception e) {
        LOGGER.error("Release memory block {} failed", this, e);
      }
    }
  }
Release all memory of this block.

<p>NOTE: This method should be called only by {@link LoadTsFileAbstractMemoryBlock#close()}.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/load/memory/LoadTsFileAbstractMemoryBlock.java