public static long getWALBlockSize(Configuration conf, FileSystem fs, Path dir,
    boolean isRecoverEdits) throws IOException {
    long defaultBlockSize = CommonFSUtils.getDefaultBlockSize(fs, dir) * 2;
    if (isRecoverEdits) {
      return conf.getLong("hbase.regionserver.recoverededits.blocksize", defaultBlockSize);
    }
    return conf.getLong(WAL_BLOCK_SIZE, defaultBlockSize);
  }
Public because of FSHLog. Should be package-private
@param isRecoverEdits the created writer is for recovered edits or WAL. For recovered edits, it
                      is true and for WAL it is false.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/WALUtil.java