Bladeren bron

HADOOP-2204. DFSTestUtil.waitReplication was not waiting for all replicas
to get created, thus causing unit test failure.
(Raghu Angadi via dhruba)



git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@595012 13f79535-47bb-0310-9956-ffa450edef68

Dhruba Borthakur 17 jaren geleden
bovenliggende
commit
85d65d508a
2 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen
  1. 4 0
      CHANGES.txt
  2. 1 0
      src/test/org/apache/hadoop/dfs/DFSTestUtil.java

+ 4 - 0
CHANGES.txt

@@ -97,6 +97,10 @@ Trunk (unreleased changes)
     HADOOP-1130. The FileSystem.closeAll() method closes all existing
     DFSClients.  (Chris Douglas via dhruba)
 
+    HADOOP-2204. DFSTestUtil.waitReplication was not waiting for all replicas
+    to get created, thus causing unit test failure.
+    (Raghu Angadi via dhruba)
+
 Release 0.15.1 -
 
   IMPROVEMENTS

+ 1 - 0
src/test/org/apache/hadoop/dfs/DFSTestUtil.java

@@ -195,6 +195,7 @@ public class DFSTestUtil extends TestCase {
         if (loc.length != replFactor) {
           System.out.println("File " + fileName + " has replication factor " +
               loc.length);
+          good = false;
           try {
             System.out.println("Waiting for replication factor to drain");
             Thread.sleep(100);