Selaa lähdekoodia

HDFS-2762. Fix TestCheckpoint timing out on HA branch. Contributed by Uma Maheswara Rao G.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-1623@1229464 13f79535-47bb-0310-9956-ffa450edef68
Todd Lipcon 13 vuotta sitten
vanhempi
commit
526efb48a6

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

@@ -89,3 +89,5 @@ HDFS-2291. Allow the StandbyNode to make checkpoints in an HA setup. (todd)
 HDFS-2709. Appropriately handle error conditions in EditLogTailer (atm via todd)
 
 HDFS-2730. Refactor shared HA-related test code into HATestUtil class (todd)
+
+HDFS-2762. Fix TestCheckpoint timing out on HA branch. (Uma Maheswara Rao G via todd)

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java

@@ -632,7 +632,7 @@ public class MiniDFSCluster {
         
         nnCounterForFormat++;
         if (formatThisOne) {
-          NameNode.format(conf);
+          DFSTestUtil.formatNameNode(conf);
         }
         prevNNDirs = FSNamesystem.getNamespaceDirs(conf);
       }