Package org.apache.hadoop.hbase.client
Class TestTableSnapshotScanner
java.lang.Object
org.apache.hadoop.hbase.client.TestTableSnapshotScanner
- Direct Known Subclasses:
TestTableSnapshotScannerWithSFT
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic byte[]static final HBaseClassTestRuleprivate booleanprivate static final byte[][]private org.apache.hadoop.fs.FileSystemprivate static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static final intprivate org.apache.hadoop.fs.Pathprivate final HBaseTestingUtilitystatic byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidblockUntilSplitFinished(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, int expectedRegionSize) static voidcreateTableAndSnapshot(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, int numRegions) voidprotected voidsetupConf(org.apache.hadoop.conf.Configuration conf) voidvoidvoidvoidvoidprivate voidtestScanner(HBaseTestingUtility util, String snapshotName, int numRegions, boolean shutdownCluster) voidvoidvoidvoidprivate voidtraverseAndSetFileTime(org.apache.hadoop.fs.Path path, long time) private static voidverifyRow(org.apache.hadoop.hbase.client.Result result) private voidverifyScanner(org.apache.hadoop.hbase.client.ResultScanner scanner, byte[] startRow, byte[] stopRow)
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
NUM_REGION_SERVERS
- See Also:
-
FAMILIES
-
bbb
-
yyy
-
fs
-
rootDir
-
clusterUp
-
name
-
-
Constructor Details
-
TestTableSnapshotScanner
public TestTableSnapshotScanner()
-
-
Method Details
-
blockUntilSplitFinished
public static void blockUntilSplitFinished(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, int expectedRegionSize) throws Exception - Throws:
Exception
-
setupCluster
- Throws:
Exception
-
tearDownCluster
- Throws:
Exception
-
setupConf
-
createTableAndSnapshot
public static void createTableAndSnapshot(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, int numRegions) throws Exception - Throws:
Exception
-
testNoDuplicateResultsWhenSplitting
- Throws:
Exception
-
testScanLimit
- Throws:
Exception
-
testWithSingleRegion
- Throws:
Exception
-
testWithMultiRegion
- Throws:
Exception
-
testWithOfflineHBaseMultiRegion
- Throws:
Exception
-
testScannerWithRestoreScanner
- Throws:
Exception
-
testScanner
private void testScanner(HBaseTestingUtility util, String snapshotName, int numRegions, boolean shutdownCluster) throws Exception - Throws:
Exception
-
verifyScanner
private void verifyScanner(org.apache.hadoop.hbase.client.ResultScanner scanner, byte[] startRow, byte[] stopRow) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
verifyRow
- Throws:
IOException
-
testMergeRegion
- Throws:
Exception
-
testDeleteTableWithMergedRegions
- Throws:
Exception
-
traverseAndSetFileTime
- Throws:
IOException
-