Package org.apache.hadoop.hbase.client
Class TestRegionLocationCaching
java.lang.Object
org.apache.hadoop.hbase.client.TestRegionLocationCaching
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static byte[]final org.junit.rules.TestNameprivate static intprivate static byte[]private static intprivate static org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcheckExistence(org.apache.hadoop.hbase.TableName tableName, byte[] row, byte[] family, byte[] qualifier) Method to check whether the passed row exists in the given tableprivate voidcheckRegionLocationIsCached(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 voidcheckRegions(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 voidstatic voidvoidvoidvoidvoidvoid
-
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:
InterruptedExceptionIOException
-
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
-