You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by li...@apache.org on 2014/04/22 20:18:36 UTC

svn commit: r1589226 - /hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java

Author: liyin
Date: Tue Apr 22 18:18:36 2014
New Revision: 1589226

URL: http://svn.apache.org/r1589226
Log:
[HBASE-9704] Fix the namenode port to fix FixTestHLog

Author: manukranthk

Summary: When I changed this to builder pattern last time, I set the namenode port to 0 instead of the given namenode port. Fixing this to run the unit tests successfully on the dev server.

Test Plan: Run TestHLog

Reviewers: daviddeng, liyintang

Reviewed By: daviddeng

CC: hbase-eng@

Differential Revision: https://phabricator.fb.com/D1286943

Task ID: 4183494

Modified:
    hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java

Modified: hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java?rev=1589226&r1=1589225&r2=1589226&view=diff
==============================================================================
--- hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java (original)
+++ hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java Tue Apr 22 18:18:36 2014
@@ -275,9 +275,9 @@ public class HBaseTestingUtility {
 
   public MiniDFSCluster startMiniDFSClusterForTestHLog(int namenodePort) throws IOException {
     createDirsAndSetProperties();
-    this.dfsCluster = new MiniDFSCluster.Builder(this.conf).nameNodePort(0)
-        .numDataNodes(5).format(false).manageDataDfsDirs(true)
-        .manageNameDfsDirs(true).build();
+    this.dfsCluster = new MiniDFSCluster.Builder(this.conf)
+        .nameNodePort(namenodePort).numDataNodes(5).format(false)
+        .manageDataDfsDirs(true).manageNameDfsDirs(true).build();
     return dfsCluster;
   }