Author: stack
Date: Thu May  5 23:32:02 2011
New Revision: 1100001

URL: http://svn.apache.org/viewvc?rev=1100001&view=rev
Log:
Backport trunk fix;  Fix TestHCM.  Disabled the force OOME test -- we create a 
new Connection per new Configuration so yeah, we OOME;

Modified:
    
hbase/branches/0.90/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java

Modified: 
hbase/branches/0.90/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java
URL: 
http://svn.apache.org/viewvc/hbase/branches/0.90/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java?rev=1100001&r1=1100000&r2=1100001&view=diff
==============================================================================
--- 
hbase/branches/0.90/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java 
(original)
+++ 
hbase/branches/0.90/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java 
Thu May  5 23:32:02 2011
@@ -71,7 +71,10 @@ public class TestHCM {
    * @throws SecurityException 
    * @see https://issues.apache.org/jira/browse/HBASE-2925
    */
-  @Test public void testManyNewConnectionsDoesnotOOME()
+  // Disabling.  Of course this test will OOME using new Configuration each 
time
+  // St.Ack 20110428
+  // @Test
+  public void testManyNewConnectionsDoesnotOOME()
   throws SecurityException, IllegalArgumentException,
   ZooKeeperConnectionException, NoSuchFieldException, IllegalAccessException,
   InterruptedException {
@@ -89,8 +92,7 @@ public class TestHCM {
       Configuration configuration = HBaseConfiguration.create();
       configuration.set("somekey", String.valueOf(_randy.nextInt()));
       System.out.println("Hash Code: " + configuration.hashCode());
-      HConnection connection =
-        HConnectionManager.getConnection(configuration);
+      HConnection connection = HConnectionManager.getConnection(configuration);
       if (last != null) {
         if (last == connection) {
           System.out.println("!! Got same connection for once !!");


Reply via email to