hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1099970 - /hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java
Date Thu, 05 May 2011 21:13:37 GMT
Author: stack
Date: Thu May  5 21:13:37 2011
New Revision: 1099970

URL: http://svn.apache.org/viewvc?rev=1099970&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/trunk/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java

Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java?rev=1099970&r1=1099969&r2=1099970&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java (original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java Thu May  5 21:13:37
2011
@@ -73,7 +73,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 {
@@ -91,8 +94,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 !!");



Mime
View raw message