From 51d2dd1490495867e80a4bef97ebb0c516d1037b Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Sat, 2 Jun 2012 05:13:00 +0000 Subject: [PATCH] HBASE-5936 Addendum adds changes for TestHMasterRPCException that were missed in previous checkin git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1345441 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/hadoop/hbase/master/TestHMasterRPCException.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestHMasterRPCException.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestHMasterRPCException.java index 63c10ed9d76..284298ff2ad 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestHMasterRPCException.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestHMasterRPCException.java @@ -31,6 +31,7 @@ import org.apache.hadoop.hbase.ipc.HBaseRPC; 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) {