hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r951935 - in /hbase/trunk: CHANGES.txt src/test/java/org/apache/hadoop/hbase/TestInfoServers.java
Date Sun, 06 Jun 2010 19:36:28 GMT
Author: todd
Date: Sun Jun  6 19:36:28 2010
New Revision: 951935

URL: http://svn.apache.org/viewvc?rev=951935&view=rev
Log:
HBASE-2676. TestInfoServers should use ephemeral ports

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/src/test/java/org/apache/hadoop/hbase/TestInfoServers.java

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=951935&r1=951934&r2=951935&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Sun Jun  6 19:36:28 2010
@@ -376,6 +376,7 @@ Release 0.21.0 - Unreleased
    HBASE-2667  TestHLog.testSplit failing in trunk (Cosmin and Stack)
    HBASE-2614  killing server in TestMasterTransitions causes NPEs and test deadlock
    HBASE-2615  M/R on bulk imported tables
+   HBASE-2676  TestInfoServers should use ephemeral ports
 
   IMPROVEMENTS
    HBASE-1760  Cleanup TODOs in HTable

Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/TestInfoServers.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/TestInfoServers.java?rev=951935&r1=951934&r2=951935&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/TestInfoServers.java (original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/TestInfoServers.java Sun Jun  6 19:36:28
2010
@@ -36,10 +36,10 @@ public class TestInfoServers extends HBa
 
   @Override
   protected void preHBaseClusterSetup() {
-    // Bring up info servers on 'odd' port numbers in case the test is not
-    // sourcing the src/test/hbase-default.xml.
-    conf.setInt("hbase.master.info.port", 60011);
-    conf.setInt("hbase.regionserver.info.port", 60031);
+    // The info servers do not run in tests by default.
+    // Set them to ephemeral ports so they will start
+    conf.setInt("hbase.master.info.port", 0);
+    conf.setInt("hbase.regionserver.info.port", 0);
   }
 
   /**
@@ -73,4 +73,4 @@ public class TestInfoServers extends HBa
     String content = sb.toString();
     assertTrue(content.contains(expected));
   }
-}
\ No newline at end of file
+}



Mime
View raw message