public class TestMetaTableAccessor extends Object
MetaTableAccessor.| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
TestMetaTableAccessor.MetaTask
Thread that runs a MetaTableAccessor task until asked stop.
|
static class |
TestMetaTableAccessor.SpyingRpcScheduler |
static class |
TestMetaTableAccessor.SpyingRpcSchedulerFactory |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.client.Connection |
connection |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static HBaseTestingUtility |
UTIL |
| Constructor and Description |
|---|
TestMetaTableAccessor() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
static void |
assertEmptyMetaLocation(org.apache.hadoop.hbase.client.Table meta,
byte[] row,
int replicaId) |
static void |
assertMetaLocation(org.apache.hadoop.hbase.client.Table meta,
byte[] row,
org.apache.hadoop.hbase.ServerName serverName,
long seqNum,
int replicaId,
boolean checkSeqNum) |
static void |
beforeClass() |
private Map<org.apache.hadoop.hbase.client.RegionInfo,Long> |
getMapOfRegionsToSeqNum(org.apache.hadoop.hbase.client.RegionInfo... regions) |
void |
testAddMergeRegions() |
void |
testEmptyMetaDaughterLocationDuringSplit() |
void |
testGetMergeRegions()
Test for HBASE-23044.
|
void |
testGetRegion() |
private static void |
testGetRegion(org.apache.hadoop.hbase.client.Connection connection,
org.apache.hadoop.hbase.client.RegionInfo region) |
private static List<org.apache.hadoop.hbase.client.RegionInfo> |
testGettingTableRegions(org.apache.hadoop.hbase.client.Connection connection,
org.apache.hadoop.hbase.TableName name,
int regionCount) |
void |
testIsMetaWhenAllHealthy() |
void |
testIsMetaWhenMetaGoesOffline() |
void |
testMastersSystemTimeIsUsedInMergeRegions() |
void |
testMastersSystemTimeIsUsedInUpdateLocations()
Tests whether maximum of masters system time versus RSs local system time is used
|
void |
testMetaLocationForRegionReplicasIsAddedAtRegionMerge() |
void |
testMetaLocationForRegionReplicasIsAddedAtRegionSplit() |
void |
testMetaLocationForRegionReplicasIsAddedAtTableCreation() |
void |
testMetaLocationsForRegionReplicas() |
void |
testMetaReaderGetColumnMethods() |
void |
testMetaScanner() |
void |
testMetaUpdatesGoToPriorityQueue() |
void |
testParseRegionInfoFromRegionName()
The info we can get from the regionName is: table name, start key, regionId, replicaId.
|
void |
testParseReplicaIdFromServerColumn() |
void |
testRetrying()
Does
MetaTableAccessor.getRegion(Connection, byte[]) and a write against hbase:meta
while its hosted server is restarted to prove our retrying works. |
void |
testScanByRegionEncodedNameExistingRegion() |
void |
testScanByRegionEncodedNameNonExistingRegion() |
void |
testScanMetaForTable() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static org.apache.hadoop.hbase.client.Connection connection
public org.junit.rules.TestName name
public TestMetaTableAccessor()
public static void beforeClass() throws Exception
Exceptionpublic static void afterClass() throws Exception
Exceptionpublic void testGetMergeRegions() throws Exception
Exceptionpublic void testAddMergeRegions() throws IOException
IOExceptionpublic 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 testGetRegion() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testScanMetaForTable() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate static List<org.apache.hadoop.hbase.client.RegionInfo> testGettingTableRegions(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.TableName name, int regionCount) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate static void testGetRegion(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo region) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testParseReplicaIdFromServerColumn()
public void testParseRegionInfoFromRegionName() throws IOException
IOExceptionpublic void testMetaReaderGetColumnMethods()
public void testMetaLocationsForRegionReplicas() throws IOException
IOExceptionpublic static void assertMetaLocation(org.apache.hadoop.hbase.client.Table meta, byte[] row, org.apache.hadoop.hbase.ServerName serverName, long seqNum, int replicaId, boolean checkSeqNum) throws IOException
IOExceptionpublic static void assertEmptyMetaLocation(org.apache.hadoop.hbase.client.Table meta, byte[] row, int replicaId) throws IOException
IOExceptionpublic void testMetaLocationForRegionReplicasIsAddedAtTableCreation() throws IOException
IOExceptionpublic void testMetaLocationForRegionReplicasIsAddedAtRegionSplit() throws IOException
IOExceptionpublic void testMetaLocationForRegionReplicasIsAddedAtRegionMerge() throws IOException
IOExceptionprivate Map<org.apache.hadoop.hbase.client.RegionInfo,Long> getMapOfRegionsToSeqNum(org.apache.hadoop.hbase.client.RegionInfo... regions)
public void testMetaScanner() throws Exception
Exceptionpublic void testMastersSystemTimeIsUsedInUpdateLocations() throws IOException
IOExceptionpublic void testMastersSystemTimeIsUsedInMergeRegions() throws IOException
IOExceptionpublic void testMetaUpdatesGoToPriorityQueue() throws Exception
Exceptionpublic void testEmptyMetaDaughterLocationDuringSplit() throws IOException
IOExceptionpublic void testScanByRegionEncodedNameExistingRegion() throws Exception
Exceptionpublic void testScanByRegionEncodedNameNonExistingRegion() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.