159160161162163164165166167168169
Assert.assertEquals(PROXY_USER_NAME + " via " + REAL_USER_NAME, retVal); } catch (Exception e) { e.printStackTrace(); Assert.fail(); } finally { server.stop(); if (proxy != null) { RPC.stopProxy(proxy); } } }
200201202203204205206207208209210
244245246247248249250251252253254
Assert.fail("The RPC must have failed " + retVal); } catch (Exception e) { e.printStackTrace(); } finally { server.stop(); if (proxy != null) { RPC.stopProxy(proxy); } } }
283284285286287288289290291292293
321322323324325326327328329330331
361362363364365366367368369370371
410411412413414415416417418419420
return ret; } catch (Exception e) { e.printStackTrace(); throw e; } finally { server.stop(); if (proxy != null) { RPC.stopProxy(proxy); } } }
460461462463464465466467468469470
111112113114115116117118119120121
proxy = (TaskUmbilicalProtocol) RPC.getProxy( TaskUmbilicalProtocol.class, TaskUmbilicalProtocol.versionID, addr, conf); proxy.ping(null); } finally { server.stop(); if (proxy != null) { RPC.stopProxy(proxy); } } return null;
800801802803804805806807808809810
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)