public static Path getCurrentFileName(final WAL wal) {
    return ((AbstractFSWAL<?>) wal).getCurrentFileName();
  }
return the current filename from the current wal.
hbase-server/src/main/java/org/apache/hadoop/hbase/wal/AbstractFSWALProvider.java