342343344345346347348349350351352
Assert.fail("The RPC must have failed " + retVal); } catch (Exception e) { e.printStackTrace(); } finally { server.stop(); if (proxy != null) { RPC.stopProxy(proxy); } } }
383384385386387388389390391392393
436437438439440441442443444445446
return ret; } catch (Exception e) { e.printStackTrace(); throw e; } finally { server.stop(); if (proxy != null) { RPC.stopProxy(proxy); } } }
489490491492493494495496497498499
109110111112113114115116117118119
proxy = (TaskUmbilicalProtocol) RPC.getProxy( TaskUmbilicalProtocol.class, TaskUmbilicalProtocol.versionID, addr, conf); proxy.ping(null); } finally { server.stop(); if (proxy != null) { RPC.stopProxy(proxy); } } return null;
493494495496497498499500501502503
LOG.info("Got the expected Exception: SocketTimeoutException"); } finally { if (proxy != null) { RPC.stopProxy(proxy); } server.stop(); } } public void testGetFileChecksum() throws Exception { final String f = "/testGetFileChecksum";
771772773774775776777778779780781
LOG.info("Got the expected Exception: SocketTimeoutException"); } finally { if (proxy != null) { RPC.stopProxy(proxy); } server.stop(); } } /** Test client retry with namenode restarting. */ @Test
369370371372373374375376377
fail ("Expected SocketTimeoutException exception, but did not get."); } finally { if (proxy != null) { RPC.stopProxy(proxy); } server.stop(); } } }
502503504505506507508509510511512
799800801802803804805806807808809
LOG.info("Got the expected Exception: SocketTimeoutException"); } finally { if (proxy != null) { RPC.stopProxy(proxy); } server.stop(); } } /** Test client retry with namenode restarting. */ @Test(timeout=300000)