public void clear() {
    totalDiskUsage.set(0);
    walNodesManager.clear();
  }
Wait until all write-ahead logs are flushed.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/WALManager.java