Package org.apache.hadoop.hbase
Class TestMetaTableAccessor
java.lang.Object
org.apache.hadoop.hbase.TestMetaTableAccessor
Test
MetaTableAccessor
.-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Thread that runs a MetaTableAccessor task until asked stop.static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.hbase.client.Connection
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
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
void
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
void
void
Tests whether maximum of masters system time versus RSs local system time is usedvoid
void
void
void
DoesMetaTableAccessor.getRegion(Connection, byte[])
and a write against hbase:meta while its hosted server is restarted to prove our retrying works.void
void
void
-
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:
IOException
InterruptedException
-
testGetRegion
- Throws:
IOException
InterruptedException
-
testScanMetaForTable
- Throws:
IOException
InterruptedException
-
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:
IOException
InterruptedException
-
testGetRegion
private static void testGetRegion(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo region) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
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
-