public void reclaimConsensusMemory() {
    // first we need to release the memory allocated for consensus
    MemoryManager storageEngineMemoryManager = memoryConfig.getStorageEngineMemoryManager();
    MemoryManager consensusMemoryManager = memoryConfig.getConsensusMemoryManager();
    long newSize =
        storageEngineMemoryManager.getTotalMemorySizeInBytes()
            + consensusMemoryManager.getTotalMemorySizeInBytes();
    consensusMemoryManager.setTotalMemorySizeInBytes(0);
    storageEngineMemoryManager.setTotalMemorySizeInBytesWithReload(newSize);
    SystemInfo.getInstance().loadWriteMemory();
  }
Get default encode algorithm by data type
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java