Package org.apache.hadoop.hbase.client
Class TestRegionLocationCaching
java.lang.Object
org.apache.hadoop.hbase.client.TestRegionLocationCaching
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static byte[]
final org.junit.rules.TestName
private static int
private static byte[]
private static int
private static org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
checkExistence
(org.apache.hadoop.hbase.TableName tableName, byte[] row, byte[] family, byte[] qualifier) Method to check whether the passed row exists in the given tableprivate void
checkRegionLocationIsCached
(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.Connection conn) Method to check whether the cached region location is non-empty for the given table.private void
checkRegions
(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.ConnectionImplementation conn, List<org.apache.hadoop.hbase.client.RegionInfo> regions, org.apache.hadoop.hbase.client.RegionInfo chosen) static void
static void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
SLAVES
-
PER_REGIONSERVER_QUEUE_SIZE
-
TABLE_NAME
-
FAMILY
-
QUALIFIER
-
name
-
-
Constructor Details
-
TestRegionLocationCaching
public TestRegionLocationCaching()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testDoNotCacheLocationWithNullServerNameWhenGetAllLocations
- Throws:
Exception
-
checkRegions
private void checkRegions(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.ConnectionImplementation conn, List<org.apache.hadoop.hbase.client.RegionInfo> regions, org.apache.hadoop.hbase.client.RegionInfo chosen) -
testCachingForHTableMultiplexerSinglePut
- Throws:
Exception
-
testCachingForHTableMultiplexerMultiPut
- Throws:
Exception
-
testCachingForHTableSinglePut
- Throws:
Exception
-
testCachingForHTableMultiPut
- Throws:
Exception
-
checkRegionLocationIsCached
private void checkRegionLocationIsCached(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.Connection conn) throws InterruptedException, IOException Method to check whether the cached region location is non-empty for the given table. It repeats the same check several times as clearing of cache by some async operations may not reflect immediately.- Throws:
InterruptedException
IOException
-
checkExistence
private static void checkExistence(org.apache.hadoop.hbase.TableName tableName, byte[] row, byte[] family, byte[] qualifier) throws Exception Method to check whether the passed row exists in the given table- Throws:
Exception
-