/** * Adjust the file pointer in the local meta file so that the last checksum * will be overwritten. */ private void adjustCrcFilePosition() throws IOException { streams.flushDataOut(); if (checksumOut != null) { checksumOut.flush(); } // rollback the position of the meta file datanode.data.adjustCrcChannelPosition(block, streams, checksumSize); }
streams.flushDataOut(); long flushEndNanos = System.nanoTime(); if (isSync) {
if (streams.getDataOut() != null) { long flushStartNanos = System.nanoTime(); streams.flushDataOut(); long flushEndNanos = System.nanoTime(); if (syncOnClose) {