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

Method discoverRegionNewRegionInfo

test/TestHBaseClient.java:377–391  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

375 // discoverRegion
376
377 @Test
378 public void discoverRegionNewRegionInfo() throws Exception {
379 clearCaches();
380 final Object obj = Whitebox.invokeMethod(client, "discoverRegion",
381 metaRow());
382 assertNotNull(obj);
383 final RegionClient region_client = (RegionClient)obj;
384 assertEquals(1, regions_cache.size());
385 assertEquals(1, region2client.size());
386 assertEquals(1, client2regions.size());
387 assertEquals("127.0.0.1:54321", region_client.getRemoteAddress());
388 assertTrue(region_client == region2client.values().iterator().next());
389 PowerMockito.verifyPrivate(client, never()).invoke("invalidateRegionCache",
390 (byte[])any(), anyBoolean(), anyString());
391 }
392
393 @Test
394 public void discoverRegionReplaceRegionInfo() throws Exception {

Callers

nothing calls this directly

Calls 7

getRemoteAddressMethod · 0.95
clearCachesMethod · 0.80
metaRowMethod · 0.80
nextMethod · 0.80
valuesMethod · 0.65
sizeMethod · 0.45
iteratorMethod · 0.45

Tested by

no test coverage detected