@Override
  public CompletableFuture<Long> sync(boolean forceSync) {
    return output.flush(forceSync);
  }
Save {@link AsyncFSOutput#getSyncedLength()} when {@link #output} is closed.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AsyncProtobufLogWriter.java