@Override
  public long getCurrentWALFileVersion() {
    return 0;
  }
This class provides fake wal node when wal is disabled or exception happens.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/node/WALFakeNode.java