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[]
private static byte[]
private static int
private static org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtil
-
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.static void
static void
void
void
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
SLAVES
-
TABLE_NAME
-
FAMILY
-
QUALIFIER
-
-
Constructor Details
-
TestRegionLocationCaching
public TestRegionLocationCaching()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- 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
-