void removePathAndBlocks ( String src , List < BlockInfo > blocks ) throws IOException { // No need for lock until we start accepting requests from clients. assert ( ! nameNode . isRpcServerRunning ( ) || hasWriteLock ( ) ) ; leaseManager . removeLeaseWithPrefixPath ( src ) ; removeBlocks ( blocks ) ; }
Remove the blocks from the given list . Also remove the path . Add the blocks to invalidates and set a flag that explicit ACK from DataNode is not required . This function should be used only for deleting entire files .