/** * Temporary files. They get moved to the finalized block directory when * the block is finalized. */ File createTmpFile(String bpid, Block b) throws IOException { checkReference(); reserveSpaceForReplica(b.getNumBytes()); try { return getBlockPoolSlice(bpid).createTmpFile(b); } catch (IOException exception) { releaseReservedSpace(b.getNumBytes()); throw exception; } }
/** * Temporary files. They get moved to the finalized block directory when * the block is finalized. */ File createTmpFile(String bpid, Block b) throws IOException { checkReference(); return getBlockPoolSlice(bpid).createTmpFile(b); }
/** * Temporary files. They get moved to the finalized block directory when * the block is finalized. */ File createTmpFile(String bpid, Block b) throws IOException { checkReference(); return getBlockPoolSlice(bpid).createTmpFile(b); }