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 Random |
random |
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) |
void |
testGetRegionsFromMetaTable() |
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 |
testMetaLocationForRegionReplicasIsRemovedAtTableDeletion() |
void |
testMetaLocationsForRegionReplicas() |
void |
testMetaReaderGetColumnMethods() |
void |
testMetaScanner() |
void |
testMetaUpdatesGoToPriorityQueue() |
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() |
void |
testTableExists() |
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
Exception
public static void afterClass() throws Exception
Exception
public void testGetMergeRegions() throws Exception
Exception
public void testAddMergeRegions() throws IOException
IOException
public void testIsMetaWhenAllHealthy() throws InterruptedException
InterruptedException
public void testIsMetaWhenMetaGoesOffline() throws InterruptedException
InterruptedException
public 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.IOException
InterruptedException
public void testGetRegionsFromMetaTable() throws IOException, InterruptedException
IOException
InterruptedException
public void testTableExists() throws IOException
IOException
public void testGetRegion() throws IOException, InterruptedException
IOException
InterruptedException
public void testScanMetaForTable() throws IOException, InterruptedException
IOException
InterruptedException
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
IOException
InterruptedException
private static void testGetRegion(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo region) throws IOException, InterruptedException
IOException
InterruptedException
public void testParseReplicaIdFromServerColumn()
public void testMetaReaderGetColumnMethods()
public void testMetaLocationsForRegionReplicas() throws IOException
IOException
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
IOException
public static void assertEmptyMetaLocation(org.apache.hadoop.hbase.client.Table meta, byte[] row, int replicaId) throws IOException
IOException
public void testMetaLocationForRegionReplicasIsRemovedAtTableDeletion() throws IOException
IOException
public void testMetaLocationForRegionReplicasIsAddedAtTableCreation() throws IOException
IOException
public void testMetaLocationForRegionReplicasIsAddedAtRegionSplit() throws IOException
IOException
public void testMetaLocationForRegionReplicasIsAddedAtRegionMerge() throws IOException
IOException
private Map<org.apache.hadoop.hbase.client.RegionInfo,Long> getMapOfRegionsToSeqNum(org.apache.hadoop.hbase.client.RegionInfo... regions)
public void testMetaScanner() throws Exception
Exception
public void testMastersSystemTimeIsUsedInUpdateLocations() throws IOException
IOException
public void testMastersSystemTimeIsUsedInMergeRegions() throws IOException
IOException
public void testMetaUpdatesGoToPriorityQueue() throws Exception
Exception
public void testEmptyMetaDaughterLocationDuringSplit() throws IOException
IOException
public void testScanByRegionEncodedNameExistingRegion() throws Exception
Exception
public void testScanByRegionEncodedNameNonExistingRegion() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.