/// <summary> /// Returns a list of blocks on a datanode that are insufficiently /// replicated, i.e. /// </summary> /// <remarks> /// Returns a list of blocks on a datanode that are insufficiently /// replicated, i.e. are under-replicated enough to prevent decommission. /// <p/> /// As part of this, it also schedules replication work for /// any under-replicated blocks. /// </remarks> /// <param name="datanode"/> /// <returns>List of insufficiently replicated blocks</returns> private AbstractList <BlockInfoContiguous> HandleInsufficientlyReplicated(DatanodeDescriptor datanode) { AbstractList <BlockInfoContiguous> insufficient = new ChunkedArrayList <BlockInfoContiguous >(); this.ProcessBlocksForDecomInternal(datanode, datanode.GetBlockIterator(), insufficient , false); return(insufficient); }