public static List<Path> getWALFiles(Configuration c, ServerName serverName) throws IOException {
    Path walRoot = new Path(CommonFSUtils.getWALRootDir(c), HConstants.HREGION_LOGDIR_NAME);
    FileSystem fs = walRoot.getFileSystem(c);
    List<Path> walFiles = new ArrayList<>();
    Path walDir = new Path(walRoot, serverName.toString());
    try {
      for (FileStatus status : fs.listStatus(walDir)) {
        if (status.isFile()) {
          walFiles.add(status.getPath());
        }
      }
    } catch (FileNotFoundException e) {
      LOG.info("WAL dir {} not exists", walDir);
    }
    return walFiles;
  }
List all the wal files for a logPrefix.
hbase-server/src/main/java/org/apache/hadoop/hbase/wal/AbstractFSWALProvider.java