@Override
  public void close() throws IOException {
    endBlock();
    state = State.CLOSED;
    closeDataNodeChannelsAndAwait();
    block.setNumBytes(ackedBlockLength);
    completeFile(this, client, namenode, src, clientName, block, stat);
  }
End the current block and complete file at namenode. You should call
{@link #recoverAndClose(CancelableProgressable)} if this method throws an exception.
hbase-asyncfs/src/main/java/org/apache/hadoop/hbase/io/asyncfs/FanOutOneBlockAsyncDFSOutput.java