public class TestMetaTableAccessor extends Object
MetaTableAccessor.| Modifier and Type | Class and Description |
|---|---|
static class |
TestMetaTableAccessor.SpyingRpcScheduler |
static class |
TestMetaTableAccessor.SpyingRpcSchedulerFactory |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
org.junit.rules.TestName |
name |
| Constructor and Description |
|---|
TestMetaTableAccessor() |
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
public TestMetaTableAccessor()
public static void beforeClass() throws Exception
Exceptionpublic static void afterClass() throws Exception
Exceptionpublic void testIsMetaWhenAllHealthy() throws InterruptedException
InterruptedExceptionpublic void testIsMetaWhenMetaGoesOffline() throws InterruptedException
InterruptedExceptionpublic void testRetrying() throws IOException, InterruptedException
MetaTableAccessor.getRegion(Connection, byte[]) and a write
against hbase:meta while its hosted server is restarted to prove our retrying
works.IOExceptionInterruptedExceptionpublic void testGetRegionsFromMetaTable() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testTableExists() throws IOException
IOExceptionpublic void testGetRegion() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testScanMetaForTable() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testParseReplicaIdFromServerColumn()
public void testMetaReaderGetColumnMethods()
public void testMetaLocationsForRegionReplicas() throws IOException
IOExceptionpublic static void assertMetaLocation(Table meta, byte[] row, ServerName serverName, long seqNum, int replicaId, boolean checkSeqNum) throws IOException
IOExceptionpublic static void assertEmptyMetaLocation(Table meta, byte[] row, int replicaId) throws IOException
IOExceptionpublic void testMetaLocationForRegionReplicasIsAddedAtTableCreation() throws IOException
IOExceptionpublic void testMetaLocationForRegionReplicasIsAddedAtRegionSplit() throws IOException
IOExceptionpublic void testMetaLocationForRegionReplicasIsAddedAtRegionMerge() throws IOException
IOExceptionpublic void testMetaScanner() throws Exception
Exceptionpublic void testMastersSystemTimeIsUsedInUpdateLocations() throws IOException
IOExceptionpublic void testMastersSystemTimeIsUsedInMergeRegions() throws IOException
IOExceptionpublic void testMetaUpdatesGoToPriorityQueue() throws Exception
Exceptionpublic void testEmptyMetaDaughterLocationDuringSplit() throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.