hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1345441 - /hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestHMasterRPCException.java
Date Sat, 02 Jun 2012 05:13:00 GMT
Author: tedyu
Date: Sat Jun  2 05:13:00 2012
New Revision: 1345441

URL: http://svn.apache.org/viewvc?rev=1345441&view=rev
Log:
HBASE-5936 Addendum adds changes for TestHMasterRPCException that were missed in previous
checkin

Modified:
    hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestHMasterRPCException.java

Modified: hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestHMasterRPCException.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestHMasterRPCException.java?rev=1345441&r1=1345440&r2=1345441&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestHMasterRPCException.java
(original)
+++ hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestHMasterRPCException.java
Sat Jun  2 05:13:00 2012
@@ -31,6 +31,7 @@ import org.apache.hadoop.hbase.ipc.HBase
 import org.apache.hadoop.hbase.ipc.HMasterInterface;
 import org.apache.hadoop.hbase.protobuf.RequestConverter;
 import org.apache.hadoop.ipc.RemoteException;
+import org.apache.hadoop.hbase.ipc.ServerNotRunningYetException;
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
 
@@ -51,9 +52,8 @@ public class TestHMasterRPCException {
     try {
       HMasterInterface inf = (HMasterInterface) HBaseRPC.getProxy(
         HMasterInterface.class,  HMasterInterface.VERSION, isa, conf, 100);
-      inf.isMasterRunning(null,RequestConverter.buildIsMasterRunningRequest());
       fail();
-    } catch (RemoteException ex) {
+    } catch (ServerNotRunningYetException ex) {
       assertTrue(ex.getMessage().startsWith(
           "org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running
yet"));
     } catch (Throwable t) {



Mime
View raw message