Author: jimk
Date: Wed Jun 27 15:37:07 2007
New Revision: 551361

URL: http://svn.apache.org/viewvc?view=rev&rev=551361
Log:
HADOOP-1537. Catch exceptions in testCleanRegionServerExit so we can see what 
is failing.

Removed:
    
lucene/hadoop/trunk/src/contrib/hbase/src/test/org/apache/hadoop/hbase/TestRegionServerAbort.java
Modified:
    lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt
    
lucene/hadoop/trunk/src/contrib/hbase/src/test/org/apache/hadoop/hbase/TestCleanRegionServerExit.java

Modified: lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt?view=diff&rev=551361&r1=551360&r2=551361
==============================================================================
--- lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt (original)
+++ lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt Wed Jun 27 15:37:07 2007
@@ -40,3 +40,6 @@
      Added an hbase-default.xml property for specifying what HRegionInterface 
extension to use
      for proxy server connection. 
  24. HADOOP-1534. [hbase] Memcache scanner fails if start key not present
+ 25. HADOOP-1537. Catch exceptions in testCleanRegionServerExit so we can see
+     what is failing.
+

Modified: 
lucene/hadoop/trunk/src/contrib/hbase/src/test/org/apache/hadoop/hbase/TestCleanRegionServerExit.java
URL: 
http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/hbase/src/test/org/apache/hadoop/hbase/TestCleanRegionServerExit.java?view=diff&rev=551361&r1=551360&r2=551361
==============================================================================
--- 
lucene/hadoop/trunk/src/contrib/hbase/src/test/org/apache/hadoop/hbase/TestCleanRegionServerExit.java
 (original)
+++ 
lucene/hadoop/trunk/src/contrib/hbase/src/test/org/apache/hadoop/hbase/TestCleanRegionServerExit.java
 Wed Jun 27 15:37:07 2007
@@ -31,22 +31,27 @@
   
   public void testCleanRegionServerExit()
   throws IOException, InterruptedException {
-    // When the META table can be opened, the region servers are running
-    this.client.openTable(HConstants.META_TABLE_NAME);
-    // Put something into the meta table.
-    this.client.createTable(new HTableDescriptor(getName()));
-    // Get current region server instance.
-    HRegionServer hsr = this.cluster.regionServers.get(0);
-    Thread hrst = this.cluster.regionThreads.get(0);
-    // Start up a new one to take over serving of root and meta after we shut
-    // down the current meta/root host.
-    this.cluster.startRegionServer();
-    // Now shutdown the region server and wait for it to go down.
-    hsr.stop();
-    hrst.join();
-    // The recalibration of the client is not working properly.  FIX.
-    // After above is fixed, add in assertions that we can get data from
-    // newly located meta table.
+    try {
+      // When the META table can be opened, the region servers are running
+      this.client.openTable(HConstants.META_TABLE_NAME);
+      // Put something into the meta table.
+      this.client.createTable(new HTableDescriptor(getName()));
+      // Get current region server instance.
+      HRegionServer hsr = this.cluster.regionServers.get(0);
+      Thread hrst = this.cluster.regionThreads.get(0);
+      // Start up a new one to take over serving of root and meta after we shut
+      // down the current meta/root host.
+      this.cluster.startRegionServer();
+      // Now shutdown the region server and wait for it to go down.
+      hsr.stop();
+      hrst.join();
+      // The recalibration of the client is not working properly.  FIX.
+      // After above is fixed, add in assertions that we can get data from
+      // newly located meta table.
+    } catch(Exception e) {
+      e.printStackTrace();
+      fail();
+    }
   }
 
 /* Comment out till recalibration of client is working properly.


Reply via email to