public boolean isAllWALEntriesConsumed() {
    return buffer.isAllWALEntriesConsumed();
  }
Return true when all wal entries all consumed and flushed
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/node/WALNode.java