MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / timeoutDifferentHandle

Method timeoutDifferentHandle

test/TestHBaseRpc.java:301–314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

299 }
300
301 @Test
302 public void timeoutDifferentHandle() throws Exception {
303 final GetRequest rpc = new GetRequest(TABLE, KEY, FAMILY);
304 final Deferred<Object> deferred = rpc.getDeferred();
305 rpc.enqueueTimeout(regionclient);
306 timer.tasks.get(0).getKey().run(mock(Timeout.class));
307
308 assertNull(rpc.timeout_handle);
309 verify(regionclient).removeRpc(rpc, true);
310 try {
311 deferred.join(1);
312 fail("Expected a RpcTimedOutException");
313 } catch (RpcTimedOutException ex) { }
314 }
315
316 @Test
317 public void timeoutNulledRegionClient() throws Exception {

Callers

nothing calls this directly

Calls 5

removeRpcMethod · 0.80
getDeferredMethod · 0.45
enqueueTimeoutMethod · 0.45
runMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected