public WALEntryHandler getWalEntryHandler() {
    return walEntryHandler;
  }
This class helps judge whether wal is flushed to the storage device.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/utils/listener/WALFlushListener.java