فهرست منبع

HDFS-4998. TestUnderReplicatedBlocks fails intermittently. Contributed by Kihwal Lee.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1503975 13f79535-47bb-0310-9956-ffa450edef68
Kihwal Lee 12 سال پیش
والد
کامیت
08c3842d09

+ 2 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

@@ -17,6 +17,8 @@ Release 0.23.10 - UNRELEASED
     HDFS-4972. Permission check and operation are done in a separate lock for
     getBlockLocations(). (kihwal)
 
+    HDFS-4998. TestUnderReplicatedBlocks fails intermittently (kihwal)
+
 Release 0.23.9 - 2013-07-08
 
   INCOMPATIBLE CHANGES

+ 1 - 0
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestUnderReplicatedBlocks.java

@@ -48,6 +48,7 @@ public class TestUnderReplicatedBlocks extends TestCase {
       DatanodeDescriptor dn = bm.blocksMap.nodeIterator(b.getLocalBlock()).next();
       bm.addToInvalidates(b.getLocalBlock(), dn);
       bm.blocksMap.removeNode(b.getLocalBlock(), dn);
+      Thread.sleep(5000);
       
       // increment this file's replication factor
       FsShell shell = new FsShell(conf);