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 HBaseTestingUtilstatic byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidblockUntilSplitFinished(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, int expectedRegionSize) static voidcreateTableAndSnapshot(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, int numRegions) private org.apache.hadoop.hbase.client.metrics.ScanMetricscreateTableSnapshotScannerAndGetScanMetrics(boolean enableScanMetrics, boolean enableScanMetricsByRegion, byte[] endKey) voidprotected voidsetupConf(org.apache.hadoop.conf.Configuration conf) voidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidtestScanner(HBaseTestingUtil 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(HBaseTestingUtil 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(HBaseTestingUtil 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
-
createTableSnapshotScannerAndGetScanMetrics
private org.apache.hadoop.hbase.client.metrics.ScanMetrics createTableSnapshotScannerAndGetScanMetrics(boolean enableScanMetrics, boolean enableScanMetricsByRegion, byte[] endKey) throws Exception - Throws:
Exception
-
testScanMetricsDisabled
- Throws:
Exception
-
testScanMetricsWithScanMetricsByRegionDisabled
- Throws:
Exception
-
testScanMetricsByRegionForSingleRegion
- Throws:
Exception
-
testScanMetricsByRegionForMultiRegion
- Throws:
Exception
-
testScannerWithRestoreScanner
- Throws:
Exception
-
testScanner
private void testScanner(HBaseTestingUtil 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
-