git-svn-id: https://svn.apache.org/repos/asf/hadoop/hdfs/trunk@815964 13f79535-47bb-0310-9956-ffa450edef68
@@ -247,6 +247,8 @@ Trunk (unreleased changes)
HDFS-612. Remove the use of org.mortbay.log.Log in FSDataset. (szetszwo)
+ HDFS-622. checkMinReplication should count live nodes only. (shv)
+
Release 0.20.1 - Unreleased
IMPROVEMENTS
@@ -233,7 +233,7 @@ public class BlockManager {
* @return true if the block has minimum replicas
*/
boolean checkMinReplication(Block block) {
- return (blocksMap.numNodes(block) >= minReplication);
+ return (countNodes(block).liveReplicas() >= minReplication);
}
/**