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
This commit is contained in:
parent
62154f1a1a
commit
51d2dd1490
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue