Package org.apache.hadoop.hbase
Class TestMetaTableAccessor
java.lang.Object
org.apache.hadoop.hbase.TestMetaTableAccessor
Test
MetaTableAccessor.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classThread that runs a MetaTableAccessor task until asked stop.static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.hbase.client.Connectionprivate static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidassertEmptyMetaLocation(org.apache.hadoop.hbase.client.Table meta, byte[] row, int replicaId) static voidassertMetaLocation(org.apache.hadoop.hbase.client.Table meta, byte[] row, org.apache.hadoop.hbase.ServerName serverName, long seqNum, int replicaId, boolean checkSeqNum) static voidvoidprivate static voidtestGetRegion(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) voidvoidvoidTests whether maximum of masters system time versus RSs local system time is usedvoidvoidvoidvoidDoesMetaTableAccessor.getRegion(Connection, byte[])and a write against hbase:meta while its hosted server is restarted to prove our retrying works.voidvoidvoid
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
connection
-
name
-
-
Constructor Details
-
TestMetaTableAccessor
public TestMetaTableAccessor()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
testIsMetaWhenAllHealthy
- Throws:
InterruptedException
-
testIsMetaWhenMetaGoesOffline
- Throws:
InterruptedException
-
testRetrying
DoesMetaTableAccessor.getRegion(Connection, byte[])and a write against hbase:meta while its hosted server is restarted to prove our retrying works.- Throws:
IOExceptionInterruptedException
-
testGetRegion
- Throws:
IOExceptionInterruptedException
-
testScanMetaForTable
- Throws:
IOExceptionInterruptedException
-
testGettingTableRegions
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) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
testGetRegion
private static void testGetRegion(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo region) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
testMetaLocationsForRegionReplicas
- Throws:
IOException
-
assertMetaLocation
public 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 - Throws:
IOException
-
assertEmptyMetaLocation
public static void assertEmptyMetaLocation(org.apache.hadoop.hbase.client.Table meta, byte[] row, int replicaId) throws IOException - Throws:
IOException
-
testMetaLocationForRegionReplicasIsAddedAtTableCreation
- Throws:
IOException
-
testMetaScanner
- Throws:
Exception
-
testMastersSystemTimeIsUsedInUpdateLocations
Tests whether maximum of masters system time versus RSs local system time is used- Throws:
IOException
-
testScanByRegionEncodedNameExistingRegion
- Throws:
Exception
-
testScanByRegionEncodedNameNonExistingRegion
- Throws:
Exception
-