Package org.apache.hadoop.hbase.client
Class TestTableSnapshotScanner
java.lang.Object
org.apache.hadoop.hbase.client.TestTableSnapshotScanner
- Direct Known Subclasses:
TestTableSnapshotScannerWithSFT
-
Field Summary
Modifier and TypeFieldDescriptionstatic byte[]
static final HBaseClassTestRule
private boolean
private static final byte[][]
private org.apache.hadoop.fs.FileSystem
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final int
private org.apache.hadoop.fs.Path
private final HBaseTestingUtil
static byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
blockUntilSplitFinished
(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, int expectedRegionSize) static void
createTableAndSnapshot
(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, int numRegions) void
protected void
setupConf
(org.apache.hadoop.conf.Configuration conf) void
void
void
void
void
private void
testScanner
(HBaseTestingUtil util, String snapshotName, int numRegions, boolean shutdownCluster) void
void
void
void
private void
traverseAndSetFileTime
(org.apache.hadoop.fs.Path path, long time) private static void
verifyRow
(org.apache.hadoop.hbase.client.Result result) private void
verifyScanner
(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
-
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:
IOException
InterruptedException
-
verifyRow
- Throws:
IOException
-
testMergeRegion
- Throws:
Exception
-
testDeleteTableWithMergedRegions
- Throws:
Exception
-
traverseAndSetFileTime
- Throws:
IOException
-