@Override // FsDatasetSpi public void uncache(String bpid, long[] blockIds) { for (int i=0; i < blockIds.length; i++) { cacheManager.uncacheBlock(bpid, blockIds[i]); } }
cacheManager.uncacheBlock(bpid, invalidBlks[i].getBlockId());
@Override // FsDatasetSpi public void uncache(String bpid, long[] blockIds) { for (int i=0; i < blockIds.length; i++) { cacheManager.uncacheBlock(bpid, blockIds[i]); } }
@Override // FsDatasetSpi public void uncache(String bpid, long[] blockIds) { for (int i=0; i < blockIds.length; i++) { cacheManager.uncacheBlock(bpid, blockIds[i]); } }
/** * Invalidate a block but does not delete the actual on-disk block file. * * It should only be used when deactivating disks. * * @param bpid the block pool ID. * @param block The block to be invalidated. */ public void invalidate(String bpid, ReplicaInfo block) { // If a DFSClient has the replica in its cache of short-circuit file // descriptors (and the client is using ShortCircuitShm), invalidate it. datanode.getShortCircuitRegistry().processBlockInvalidation( new ExtendedBlockId(block.getBlockId(), bpid)); // If the block is cached, start uncaching it. cacheManager.uncacheBlock(bpid, block.getBlockId()); datanode.notifyNamenodeDeletedBlock(new ExtendedBlock(bpid, block), block.getStorageUuid()); }
cacheManager.uncacheBlock(bpid, replicaInfo.getBlockId());
cacheManager.uncacheBlock(bpid, invalidBlks[i].getBlockId());
cacheManager.uncacheBlock(bpid, invalidBlks[i].getBlockId());
throws IOException { cacheManager.uncacheBlock(bpid, replicaInfo.getBlockId());
/** * Invalidate a block but does not delete the actual on-disk block file. * * It should only be used when deactivating disks. * * @param bpid the block pool ID. * @param block The block to be invalidated. */ public void invalidate(String bpid, ReplicaInfo block) { // If a DFSClient has the replica in its cache of short-circuit file // descriptors (and the client is using ShortCircuitShm), invalidate it. datanode.getShortCircuitRegistry().processBlockInvalidation( new ExtendedBlockId(block.getBlockId(), bpid)); // If the block is cached, start uncaching it. cacheManager.uncacheBlock(bpid, block.getBlockId()); datanode.notifyNamenodeDeletedBlock(new ExtendedBlock(bpid, block), block.getStorageUuid()); }
/** * Invalidate a block but does not delete the actual on-disk block file. * * It should only be used when deactivating disks. * * @param bpid the block pool ID. * @param block The block to be invalidated. */ public void invalidate(String bpid, ReplicaInfo block) { // If a DFSClient has the replica in its cache of short-circuit file // descriptors (and the client is using ShortCircuitShm), invalidate it. datanode.getShortCircuitRegistry().processBlockInvalidation( new ExtendedBlockId(block.getBlockId(), bpid)); // If the block is cached, start uncaching it. cacheManager.uncacheBlock(bpid, block.getBlockId()); datanode.notifyNamenodeDeletedBlock(new ExtendedBlock(bpid, block), block.getStorageUuid()); }
throws IOException { cacheManager.uncacheBlock(bpid, replicaInfo.getBlockId());