Package org.apache.hadoop.hbase
Class TestMetaTableAccessor
java.lang.Object
org.apache.hadoop.hbase.TestMetaTableAccessor
@Tag("org.apache.hadoop.hbase.testclassification.MiscTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestMetaTableAccessor
extends Object
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 TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Connectionprivate static final org.slf4j.Loggerprivate 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 voidprivate static voidtestGetRegion(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo region) voidtestGetRegion(org.junit.jupiter.api.TestInfo testInfo) 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) voidvoidvoidtestMastersSystemTimeIsUsedInUpdateLocations(org.junit.jupiter.api.TestInfo testInfo) Tests whether maximum of masters system time versus RSs local system time is usedvoidtestMetaLocationForRegionReplicasIsAddedAtTableCreation(org.junit.jupiter.api.TestInfo testInfo) voidtestMetaLocationsForRegionReplicas(org.junit.jupiter.api.TestInfo testInfo) voidtestMetaScanner(org.junit.jupiter.api.TestInfo testInfo) voidtestRetrying(org.junit.jupiter.api.TestInfo testInfo) DoesMetaTableAccessor.getRegion(Connection, byte[])and a write against hbase:meta while its hosted server is restarted to prove our retrying works.voidvoidvoidtestScanMetaForTable(org.junit.jupiter.api.TestInfo testInfo)
-
Field Details
-
LOG
-
UTIL
-
connection
-
-
Constructor Details
-
TestMetaTableAccessor
public TestMetaTableAccessor()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
testIsMetaWhenAllHealthy
- Throws:
InterruptedException
-
testIsMetaWhenMetaGoesOffline
- Throws:
InterruptedException
-
testRetrying
@Test public void testRetrying(org.junit.jupiter.api.TestInfo testInfo) throws IOException, InterruptedException DoesMetaTableAccessor.getRegion(Connection, byte[])and a write against hbase:meta while its hosted server is restarted to prove our retrying works.- Throws:
IOExceptionInterruptedException
-
testGetRegion
@Test public void testGetRegion(org.junit.jupiter.api.TestInfo testInfo) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
testScanMetaForTable
@Test public void testScanMetaForTable(org.junit.jupiter.api.TestInfo testInfo) throws IOException, InterruptedException - 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
@Test public void testMetaLocationsForRegionReplicas(org.junit.jupiter.api.TestInfo testInfo) throws IOException - 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
@Test public void testMetaLocationForRegionReplicasIsAddedAtTableCreation(org.junit.jupiter.api.TestInfo testInfo) throws IOException - Throws:
IOException
-
testMetaScanner
- Throws:
Exception
-
testMastersSystemTimeIsUsedInUpdateLocations
@Test public void testMastersSystemTimeIsUsedInUpdateLocations(org.junit.jupiter.api.TestInfo testInfo) throws IOException Tests whether maximum of masters system time versus RSs local system time is used- Throws:
IOException
-
testScanByRegionEncodedNameExistingRegion
- Throws:
Exception
-
testScanByRegionEncodedNameNonExistingRegion
- Throws:
Exception
-