public class TestTableSnapshotScanner extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
bbb |
static HBaseClassTestRule |
CLASS_RULE |
private static byte[][] |
FAMILIES |
private org.apache.hadoop.fs.FileSystem |
fs |
private static org.slf4j.Logger |
LOG |
private static int |
NUM_REGION_SERVERS |
private org.apache.hadoop.fs.Path |
rootDir |
private HBaseTestingUtility |
UTIL |
static byte[] |
yyy |
| Constructor and Description |
|---|
TestTableSnapshotScanner() |
| Modifier and Type | Method and Description |
|---|---|
static void |
blockUntilSplitFinished(HBaseTestingUtility util,
org.apache.hadoop.hbase.TableName tableName,
int expectedRegionSize) |
static void |
createTableAndSnapshot(HBaseTestingUtility util,
org.apache.hadoop.hbase.TableName tableName,
String snapshotName,
int numRegions) |
void |
setupCluster() |
private static void |
setupConf(org.apache.hadoop.conf.Configuration conf) |
void |
tearDown() |
void |
tearDownCluster() |
void |
testNoDuplicateResultsWhenSplitting() |
private void |
testScanner(HBaseTestingUtility util,
String snapshotName,
int numRegions,
boolean shutdownCluster) |
void |
testScannerWithRestoreScanner() |
void |
testWithMultiRegion() |
void |
testWithOfflineHBaseMultiRegion() |
void |
testWithSingleRegion() |
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) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private final HBaseTestingUtility UTIL
private static final int NUM_REGION_SERVERS
private static final byte[][] FAMILIES
public static byte[] bbb
public static byte[] yyy
private org.apache.hadoop.fs.FileSystem fs
private org.apache.hadoop.fs.Path rootDir
public TestTableSnapshotScanner()
public static void blockUntilSplitFinished(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, int expectedRegionSize) throws Exception
Exceptionpublic void setupCluster() throws Exception
Exceptionpublic void tearDownCluster() throws Exception
Exceptionprivate static void setupConf(org.apache.hadoop.conf.Configuration conf)
public static void createTableAndSnapshot(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, int numRegions) throws Exception
Exceptionpublic void testNoDuplicateResultsWhenSplitting() throws Exception
Exceptionpublic void testWithSingleRegion() throws Exception
Exceptionpublic void testWithMultiRegion() throws Exception
Exceptionpublic void testWithOfflineHBaseMultiRegion() throws Exception
Exceptionpublic void testScannerWithRestoreScanner() throws Exception
Exceptionprivate void testScanner(HBaseTestingUtility util, String snapshotName, int numRegions, boolean shutdownCluster) throws Exception
Exceptionprivate void verifyScanner(org.apache.hadoop.hbase.client.ResultScanner scanner, byte[] startRow, byte[] stopRow) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate static void verifyRow(org.apache.hadoop.hbase.client.Result result) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.