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 HBaseTestingUtility
-
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
getMapOfRegionsToSeqNum
(org.apache.hadoop.hbase.client.RegionInfo... regions) void
void
void
Test for HBASE-23044.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
void
Tests whether maximum of masters system time versus RSs local system time is usedvoid
void
void
void
void
void
void
void
The info we can get from the regionName is: table name, start key, regionId, replicaId.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
-
testGetMergeRegions
Test for HBASE-23044.- Throws:
Exception
-
testAddMergeRegions
- Throws:
IOException
-
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
-
testParseReplicaIdFromServerColumn
-
testParseRegionInfoFromRegionName
The info we can get from the regionName is: table name, start key, regionId, replicaId.- Throws:
IOException
-
testMetaReaderGetColumnMethods
-
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
-
testMetaLocationForRegionReplicasIsAddedAtRegionSplit
- Throws:
IOException
-
testMetaLocationForRegionReplicasIsAddedAtRegionMerge
- Throws:
IOException
-
getMapOfRegionsToSeqNum
private Map<org.apache.hadoop.hbase.client.RegionInfo,Long> getMapOfRegionsToSeqNum(org.apache.hadoop.hbase.client.RegionInfo... regions) -
testMetaScanner
- Throws:
Exception
-
testMastersSystemTimeIsUsedInUpdateLocations
Tests whether maximum of masters system time versus RSs local system time is used- Throws:
IOException
-
testMastersSystemTimeIsUsedInMergeRegions
- Throws:
IOException
-
testMetaUpdatesGoToPriorityQueue
- Throws:
Exception
-
testEmptyMetaDaughterLocationDuringSplit
- Throws:
IOException
-
testScanByRegionEncodedNameExistingRegion
- Throws:
Exception
-
testScanByRegionEncodedNameNonExistingRegion
- Throws:
Exception
-